关于spring boot启动的问题?

Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextInitializer at org.springframework.boot.SpringApplication.initialize(SpringApplication.java:249) at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:225) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) at com.wsk.movie.MovieApplication.main(MovieApplication.java:16)Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContextInitializer at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 5 more



UYOU
浏览 1479回答 1
1回答

一只名叫tom的猫

使用maven打包的方式来实现: maven指令:spring-boot:run
打开App,查看更多内容
随时随地看视频慕课网APP