找了一个晚上的Bug,mybatis查出来的数据,user_id始终为0!
- 原因与解决:
Mybatis配置里开启了驼峰命名,导致识别错误!!
将配置里的true改为false
# 驼峰配置改为false,或者将user_id改为userId驼峰形式!
mybatis.configuration.map-underscore-to-camel-case=false
找了一个晚上的Bug,mybatis查出来的数据,user_id始终为0!
# 驼峰配置改为false,或者将user_id改为userId驼峰形式!
mybatis.configuration.map-underscore-to-camel-case=false