SpringBoot 在整合其资源的时候经常会遇到could not autowired. No beans of ‘xxxx’ type,虽然不影响使用,但是看着比较恶心 。 
如: 

SpringBoot could not autowire

这是因为在Spring在自动bean的时候还没有把当前所注入的bean装配起来,但是随着项目启动,bean被装配 了,然后调用的时候就有了。 
解决办法: 
加入注解

@Component(value = "apiCategoryMapper")SpringBoot could not autowire

然后提示就消失了 

SpringBoot could not autowire

 

相关文章:

  • 2021-06-21
  • 2021-09-12
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2021-09-27
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2021-09-28
  • 2021-10-15
  • 2021-03-30
  • 2021-06-24
相关资源
相似解决方案