红线的报错内容:

Could not autowire. No beans of ‘RestTemplate’ type found. more… (Ctrl+F1)

如图:
IDEA 报错 Could not autowire. No beans of ''RestTemplate" type found.
解决方法:在 Intellij Idea中设置一下:

Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable(idea2017是把√去掉)
IDEA 报错 Could not autowire. No beans of ''RestTemplate" type found.

相关文章:

  • 2021-12-10
  • 2021-07-01
  • 2021-07-27
  • 2021-06-21
  • 2021-08-13
  • 2022-12-23
  • 2021-12-14
  • 2021-07-13
猜你喜欢
  • 2021-10-27
  • 2021-04-23
  • 2021-05-25
  • 2022-01-19
  • 2021-04-19
  • 2021-07-02
  • 2021-07-04
相关资源
相似解决方案