SpringBoot mybatisplus项目编译以后没有xml文件解决方案


springboot有一个打包插件可以实现资源拷贝,但是要注意如果你设置了其他目录的拷贝动作,那么默认的resource文件夹需要手动设置一下

 
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
        
            
                src/main/java
                
                    **/*.xml
                
            
            
                src/main/resources