Orika ClassCastException in Spring Boot webapp
问题 I'm having a weird ClassCastException while mapping an entity to a DTO with Orika in a sample Spring Boot webapp I'm working on. I get the exception when I attempt to do the mapping on the deployed app in embedded Tomcat, but I can do the mapping just fine in a JUnit test context. This are the relevant classes (they are all very simple): JPA entity: @Entity public class Position { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; private String name; // getters