mybatis-plus使用mapper的xml
1、在pom.xml中配置资源导出
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
2、在application.properties中配置xml路径
#配置mybatis-plus的xml位置
mybatis-plus.mapper-locations=classpath:com/tuzhi/edu_service/mapper/xml/*.xml