Spring Boot整合Mybaits-Plus中遇到的坑
概述
问题一、使用LambdaQueryWrapper查询的时候报错(MybatisPlusException: Your property named “xxx” cannot find the corresponding database column name!)
版本问题!!!!可以退回到3.1.0的版本
Mybatis-Plus官方问题文档中,直接搜上面的问题列
问题二、在使用Spring Boot的devtool热加载的时候发现报错(Could not load [mybatis/])
只需要设application.properties
mybatis.mapperLocations=classpath*:mapper/*.xml
使用“classpath*”替换之前的classpath:来告诉spring查找所有classpath
【注意】:是在classpath后面添加“*”号