spring boot集成mybatisplus搭建项目,在只有spring boot时访问正常,集成后,启动项目控制台报错如标题:MyBatis: No MyBatis mapper was found in '[xx.mapper]' package. Please check your configuration。
解决方案:把启动类上的扫描mapper的注解@ComponentScan(basePackages = {"com.example.exam.mapper"})改为@MapperScan(basePackages = {"com.example.exam.mapper"})后,重启项目,发现项目正常