Action: Consider defining a bean of type ‘entity.IdWorker‘ in your configuration.

**Description:Field idWorker in com.changgou.goods.service.impl.SpuServiceImpl required a bean of type ‘entity.IdWorker’

**Description:Field idWorker in com.changgou.goods.service.impl.SpuServiceImpl required a bean of type ‘entity.IdWorker’ that could not be found.
The injection point has the following annotations:

@org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type ‘entity.IdWorker’ in your configuration.
**

描述:使用SpringBoot构建项目时,运行启动类发现加载某个类时发现无法在IoC容器中找到需要的Bean,程序会建议你把需要使用的Bean存入到IoC容器中。

解决方法:
手动在启动类加入@Configuration与@Import注解

发布者:admin,转转请注明出处:http://www.yc00.com/web/1738336444a4038948.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信