https://start.spring.io/
請問官網生出的專案怎都無法執行呢?
idea 生出來的專案也一樣無法執行
錯誤訊息是
Exception in thread "main" java.lang.NoClassDefFoundError:
org/springframework/boot/SpringApplication
at com.example.demo.DemoApplication.main(DemoApplication.java:10)
Caused by: java.lang.ClassNotFoundException:
org.springframework.boot.SpringApplication
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more Process finished with exit code 1
似乎是找不到 SpringApplication.run
請問這問題該怎解呢?