티스토리 뷰
SW개발/Spring Framework
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
개소왕 2020. 9. 30. 18:17OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication
at com.cidog.devinfo.Application.main(Application.java:10)
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 1 more
* 환경
java 11
sts 4.8.0
* 해결
Spring Boot 프로젝트 생성시 Spring boot version 을 올렸음
2.3.4 -> 2.4.0
- 2.3.5 로 고쳐도 가능함.
2.4.0 은 MyBatis 를 지원하지 않음.