Spring在运行Spring Boot应用程序时断言NoClassDefFoundError

时间:2018-03-13 08:09:05

标签: java spring eclipse java-9

我在Eclipse Oxygen上使用Java 9,Maven和Spring boot 2.0.1。

当我运行应用程序时,我收到此错误:

Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/util/Assert
at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:263)
at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:247)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234)

Caused by: java.lang.ClassNotFoundException: org.springframework.util.Assert
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 5 more

0 个答案:

没有答案