springboot工程目录如下:

SpringBoot配置mybatis的配置文件

mybatis的配置文件分在不同的文件夹下的配置方法为:在application.properties文件中添加

mybatis.mapper-locations=classpath*:mybatis/mapper/check/*.xml,classpath*:mybatis/mapper/user/*.xml,classpath*:mybatis/mapper/system/*.xml,classpath*:mybatis/mapper/rel/*.xml

下划线之间用逗号隔开。

相关文章:

  • 2022-02-11
  • 2021-12-03
  • 2021-10-04
  • 2021-12-15
  • 2021-07-03
  • 2021-10-18
猜你喜欢
  • 2021-11-23
  • 2021-06-18
  • 2021-04-28
  • 2021-06-22
  • 2021-05-13
  • 2021-12-19
  • 2021-05-08
相关资源
相似解决方案