方法一(properties中):
#将带有下划线的表字段映射为驼峰格式的实体类属性
mybatis.configuration.map-underscore-to-camel-case=true
方法二(mapper.xml中):
写一个resultMap,然后在写sql语句的时候直接返回一个自己定义好的resultMap,
通过resultMap把数据库和实体类的字段一一对应起来
方法一(properties中):
#将带有下划线的表字段映射为驼峰格式的实体类属性
mybatis.configuration.map-underscore-to-camel-case=true
方法二(mapper.xml中):
写一个resultMap,然后在写sql语句的时候直接返回一个自己定义好的resultMap,
通过resultMap把数据库和实体类的字段一一对应起来