0
点赞
收藏
分享

微信扫一扫

mybatis获取数据库遭遇驼峰命名的巨坑

飞进科技 2022-01-10 阅读 58

数据库:mysql
项目:springboot,mybatis-plus
表中字段名带有下划线,实体类设计时应按驼峰命名规则,如:
字段名xxx_yyy
实体类xxxYyy
配置文件application.properties中
mybatis-plus.configuration.map-underscore-to-camel-case=true

举报

相关推荐

0 条评论