Springboot项目中A component required a bean of type ‘XXX‘ that could not be found解决方法

记得在application.properties文件中写上:

mybatis-plus.mapper-locations=classpath:/mapper/*.xml