1.问题描述
使用QueryWrapper时无法识别数据库中的驼峰命名字段
2.解决办法
在配置文件application.yml中设置允许驼峰命名,即map-underscore-to-camel-case: true
mybatis-plus:
mapper-locations: classpath*:/mapper/*Mapper.xml
type-aliases-package: com.edu.server.pojo
configuration:
map-underscore-to-camel-case: true