原因:找不到 ***mapper.xml 问题
解决方法:
去掉引用 mybatis-plus
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>3.1.2</version>
</dependency>
改为引用 mybatis-plus-boot-starter
并在配置文件***.yml
指定***mapper.xml
扫描位置
pom.xml 文件
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.1.2</version>
</dependency>
***.yml 文件 配置
mybatis-plus:
mapper-locations: classpath*:mapper/*.xml
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)