classpath* 这个星加上即可,非常重要,我在这里踩了两次坑,记录一下
mybatis:
config-location: classpath:mybatis/mybatis.cfg.xml # mybatis配置文件所在路径
mapper-locations:
- classpath*:com/example/demo/**/dao/xml/*.xml # mapper映射文件
classpath* 这个星加上即可,非常重要,我在这里踩了两次坑,记录一下
mybatis:
config-location: classpath:mybatis/mybatis.cfg.xml # mybatis配置文件所在路径
mapper-locations:
- classpath*:com/example/demo/**/dao/xml/*.xml # mapper映射文件