ieda 报错 Could not autowire. No beans of 'userService' type found.

private UserService userService;

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

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

解决方案:

Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class 勾去掉

猜你喜欢

转载自blog.csdn.net/qq_17197861/article/details/81560067