spring boot项目maven打包可执行JAR

在pom.xml中添加如下配置:

       
            
                org.springframework.boot
                spring-boot-maven-plugin
                
                    true
                    com.sanro.test.CMApplication
                
                
                    
                        
                            repackage
                        
                    
                
            

 

转载于:https://www.cnblogs.com/yoyotl/p/11529644.html

你可能感兴趣的:(java)