原本使用的是JDK17来写的项目,后来换成1.8后发现Mybatis多级寻找xml出现问题,记录一下
正常情况下JDK17可以读取**,但是JDK8不行
mybatis.mapper-locations=classpath:com/**/**/*.xml
在JDK8中只能多次寻找,或者写死路径
mybatis.mapper-locations=classpath:com/abc/cba/*.xml
mybatis.mapper-locations=classpath:com/abc/cba/*.xml,classpath:com/abc/caa/*.xml