sprintboot maven 项目 本地运行 结果报错
java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextInitializer
我的解决:
将原来项目中的 sprintboot 版本 从 2.0.1 改成了 2.0.4
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.4.RELEASE</version>
<!--将 2.0.1 改 成了 2.0.4-->
</parent>