【发布时间】:2018-01-17 10:40:34
【问题描述】:
Dozer 给了我这个错误:
llegal object type for the method 'setEstado'.
Expected types:
es.dominion.alert.util.dtos.TbEstadoDto
Actual types:
es.dominion.alert.util.dtos.TbEstadoDto
我有带有 Spring Boot 的推土机配置:
@Bean
public Mapper mapper() {
return new DozerBeanMapper(Arrays.asList("dozerMapping.xml"));
}
在@Service 中,我使用@Autowired 注入映射器。我使用 Hibernate 和 Spring-JPA 来获取数据,并且这个对象是 EAGER 映射的。
我不知道如何解决这种情况。它可能是 maven 过滤?我正在使用个人资料。
【问题讨论】:
标签: java spring maven spring-boot dozer