一.基本配置
1.configLogcation
SpringBoot:application.properties 文件中配置
SpringMvc:在SpringMvc的xml配置文件中配置
2.mapperLocation
用于写mapper.xml文件的时候,来加载mapper.xml文件
配置位置同上
3.typeAliasesPackage
二.进阶配置
1.mapUnderscoreToCameICase
MP:是否开启驼峰映射,默认为true
2.cacheEnable
三.DB策略
1.idType:主键的增长方式
2.tablePrefix
MP中默认生成的表名是实体类首字母小写