SpringBoot mybatisplus项目编译以后没有xml文件解决方案
springboot有一个打包插件可以实现资源拷贝,但是要注意如果你设置了其他目录的拷贝动作,那么默认的resource文件夹需要手动设置一下
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>