Fix IDEA MyBatis Warning: Could not autowire. No beans of 'XXXMapper' type found.
When using MyBatis, IDEA prompts 'Could not autowire. No beans of 'XXXMapper' type found.' and draws a red squiggly line on the mapper class. The actual reason is that you forgot to add the @Repository annotation to the mapper.


