在4.1.7的spring版本中报错误:java.lang.NoClassDefFoundError: org/springframework/context/event/
升级到4.3.9就可以。
<properties>
<java.version>1.8</java.version>
<spring.version>4.3.9.RELEASE</spring.version>
<!--之前是4.1.7-->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Execution default-resources of goal org.apache.maven.plugins:maven-resource-plugin:2.6解决方法在pom.xml添加2.7的依赖,update-project就行了:
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
</dependency>