private UserService userService;

在ieda报错,但查不到问题。

程序的编译和运行都是没有问题的,这个错误提示并不会产生影响。

解决方案:

Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class 勾去掉
ieda 报错 Could not autowire. No beans of 'userService' type found.
ieda 报错 Could not autowire. No beans of 'userService' type found.
ieda 报错 Could not autowire. No beans of 'userService' type found.

相关文章: