直接在yml配置文件中添加:
mybatis:
typeAliasesPackage: com.jzb.**.**.entity
mapperLocations: classpath:/mapping/*.xml
configuration:
map-underscore-to-camel-case: true #自动开启驼峰规则映射
call-setters-on-nulls: true
直接在yml配置文件中添加:
mybatis:
typeAliasesPackage: com.jzb.**.**.entity
mapperLocations: classpath:/mapping/*.xml
configuration:
map-underscore-to-camel-case: true #自动开启驼峰规则映射
call-setters-on-nulls: true