APPLICATION FAILED TO START
Description:
Field homeService in com.hollycrm.product.bscreen.controller.product.HomeController required a bean of type ‘com.hollycrm.product.bscreen.service.product.HomeService’ that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
原因:
检查下ServiceImpl接口实现类是否有添加@Service注解!!!
包名:import org.springframework.stereotype.Service;
本文分析了Spring框架中依赖注入失败的问题,具体表现为在HomeController中无法找到HomeService的实例。指出了解决该问题的关键在于检查HomeService的服务实现类是否正确标注了@Service注解。
6452

被折叠的 条评论
为什么被折叠?



