ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

mybatis-plus引入

mybatis-plus引入

启动报错信息

Property 'configuration' and 'configLocation' can not specified with together

 

引入配置注意事项

下边开启了驼峰命名法需要改config-location为config-locations

mybatis-plus:config-location: classpath:mybatis/mybatis-config.xml# 配置mapper.xml路径mapper-locations: classpath*:mapper/**/*Mapper.xml# 检查xml文件是否存在check-config-location: trueconfiguration:# 开启驼峰命名法map-underscore-to-camel-case: truelog-impl: org.apache.ibatis.logging.stdout.StdOutImpltype-aliases-package: com.xx.xx.**.domain

正确的

mybatis-plus:config-locations: classpath:mybatis/mybatis-config.xml# 配置mapper.xml路径mapper-locations: classpath*:mapper/**/*Mapper.xml# 检查xml文件是否存在check-config-location: trueconfiguration:# 开启驼峰命名法map-underscore-to-camel-case: truelog-impl: org.apache.ibatis.logging.stdout.StdOutImpltype-aliases-package: com.xx.xx.**.domain

 

 

返回列表