Spring-boot集成Mybatis-Plus启动报如下错误
<<No MyBatis mapper was found in ‘[com.example.demo.mapper]’ package. Please check your configuration.>>
在启动类XXXApplicaton上加上 @MapperScan(basePackages = “com.demo.mapper”)注解
Spring-boot集成Mybatis-Plus启动报如下错误
<<No MyBatis mapper was found in ‘[com.example.demo.mapper]’ package. Please check your configuration.>>
在启动类XXXApplicaton上加上 @MapperScan(basePackages = “com.demo.mapper”)注解