当前位置: 首页 > news >正文

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

 

 

http://www.rkmt.cn/news/56.html

相关文章:

  • 79、制作表头不能用合并后居中
  • 01bfs 对 dij最短路的优化,以及一些易错点
  • 数据结构与算法-21.堆-排序
  • 学习笔记-安全概述
  • Adobe Animate CC2018安装包下载与安装教程
  • 完整教程:以数据与自动化驱动实验室变革:智能化管理整体规划
  • 软件工程第一次作业
  • Windows11新系统激活设置PIN码步骤转圈
  • Elasticsearch
  • MySQL单表查询DQL
  • PyQt5 之QMenu菜单栏
  • 事半功倍是蠢蛋51 大上黑白屏反色
  • Linux 启动耗时优化 1s 内启动(RK3588 平台)
  • 周总结报告5
  • 使用模拟库进行测试的意义是什么?