This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13262|Reply: 1

[Source] Could not autowire. No beans of 'AccountMapper' type found.

[Copy link]
Posted on 8/27/2018 10:55:14 AM | | | |
The Intellij Idea development tool reports the following error when @Autowired or @Resource inject the XxxMapper interface:

Could not autowire. No beans of ‘XxxMapper’ type found. less… (Ctrl+F1) Checks autowiring problems in a bean class.

Could not autowire. No beans of 'AccountMapper' type found. less... (Ctrl+F1)
Inspection info:Checks autowiring problems in a bean class.

Here's how to fix it:
Set it up in Intellij Idea:

Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable (idea2018 seems to remove the √)






Previous:The default repository location for local maven
Next:Java MD5 encryption method
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com