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

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

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




        
13条回答
  •  爱一瞬间的悲伤
    2020-11-28 11:29

    Here the packaging is jar type, hence you need to use manifest plugin, in order to add dependencies into the Manifest.mf

    The problem here is that maven could find the dependencies in pom file and compile the source code and create the output jar. But when executing the jar, manifest.mf file contains no details of dependencies. Hence you got this error. This is a case of classpath errors.

    Here you can find the details on how to do it.

提交回复
热议问题