@Autowired
private TestService testService;


使用@Autowired注解的时候,出现这个问题,但是项目依然可以启动,没有报相关的问题...

修改方法:

在settings中修改: 原先是error改为warning

springboot中出现 could not autowire, No beans of TestService 'type' found

相关文章:

  • 2021-06-04
  • 2021-07-13
  • 2021-07-29
  • 2021-04-13
  • 2021-10-15
猜你喜欢
  • 2021-07-18
  • 2021-11-22
  • 2021-05-31
  • 2021-06-29
  • 2021-08-11
  • 2021-04-25
  • 2021-08-27
相关资源
相似解决方案