IDEA:Could not autowire. No beans of 'UserMapper' type found. more... (Ctrl+F1)

mac2025-03-13  10

红线报错:Could not autowire. No beans of ‘ApiUserMapper’ type found. less… (Ctrl+F1) Inspection info:Checks autowiring problems in a bean class.

如图:

标题解决方法:在 Intellij Idea中设置一下:

Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable(idea2017是把√去掉)

最新回复(0)