Could not autowire. No beans of ‘BookMapper’ type found.
Could not autowire. No beans of ‘BookMapper‘ type found.

解决方法,在IDEA中设置一下,
Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable 把勾去掉即可,如下图:
Could not autowire. No beans of ‘BookMapper‘ type found.
问题解决!!!

相关文章: