- 方法一:开启下划线转大驼峰命名
mybatis:
configuration:
map-underscore-to-camel-case: true # 开启下划线转大驼峰
- 方法三:在Mapper层使用Map集合进行映射,回填到实体类中。
Original: https://www.cnblogs.com/malongfeistudy/p/16748968.html
Author: 有点小白的菜鸟
Title: Spring整合Mybatis连接MySQL数据库配置 异常 情景再现
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/580479/
转载文章受原作者版权保护。转载请注明原作者出处!