描述
在使用SpringBoot读取数据时,对于一些数据不能成功的读取。
比如user_id、create_time等。
这种需要在配置文件中开启驼峰命名转换
解决
mybatis:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.kai.community.entity
#开启驼峰命名转换
configuration:
useGeneratedKeys: true
mapUnderscoreToCamelCase: true