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
请问这问题该怎解呢?