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中默认生成的表名是实体类首字母小写
暑期编程PK赛 得CSDN机械键盘等精美礼品!



