我有一个非网络环境 spring-boot
,因为我只需要一些课程:
spring.main.web-application-type=none
问:如何让spring自动配置 org.springframework.core.convert.ConversionService
(如我所需) @Convert
的自动Map @Entity
对象)?
当我尝试自动连线对话服务时,它失败了:
@Autowired
private ConversionService conversionService;
public void fetch() {
BeanPropertyRowMapper.newInstance(MyObject.class, conversionService));
}
``` `required a bean of type 'org.springframework.core.convert.ConversionService' that could not be found.`
暂无答案!
目前还没有任何答案,快来回答吧!