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 把勾去掉即可,如下图:
问题解决!!!