在配置文件中加入
mybatis.configuration.map-underscore-to-camel-case=true




本文介绍如何在MyBatis配置文件中启用驼峰命名转换功能,通过设置map-underscore-to-camel-case参数为true,实现字段名从下划线风格自动映射到驼峰风格。
在配置文件中加入
mybatis.configuration.map-underscore-to-camel-case=true




2170
2937

被折叠的 条评论
为什么被折叠?