MybatisPlus默认自动开启驼峰命名映射,
这样可能会查出空值
就算使用@TableField(value = “”))注解可能也没用
关闭自动驼峰命名映射:
#在springboot的yml配置文件中配置
mybatis-plus:
configuration:
map-underscore-to-camel-case: false
MybatisPlus默认自动开启驼峰命名映射,
这样可能会查出空值
就算使用@TableField(value = “”))注解可能也没用
关闭自动驼峰命名映射:
#在springboot的yml配置文件中配置
mybatis-plus:
configuration:
map-underscore-to-camel-case: false