java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication Maven

后端 未结 13 985
醉酒成梦
醉酒成梦 2020-11-28 11:10

I\'m trying to create a spring mvc application. This is my pom.xml




        
13条回答
  •  清酒与你
    2020-11-28 11:48

    Another option is to use the Apache Maven Shade Plugin: This plugin provides the capability to package the artifact in an uber-jar, including its dependencies and to shade - i.e. rename - the packages of some of the dependencies.

    add this to your build plugins section

    
         org.apache.maven.plugins
         maven-shade-plugin
    
    

提交回复
热议问题