在maven项目中,使用spring 4.2.0, jdk 1.8.0, web module 3.0,修改完成后一直存在problems,解决方案如下:
1.在pom.xml的<plugins>节点下添加如下内容
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.4</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin>
2.修改环境变量
3.修改.classpath文件
4.修改.setting文件夹下如下内容:
org.eclipse.jdt.core.prefs文件
在项目右键Maven--Update project...之后,在项目右键properties--deployment assembly中添加maven依赖项,即可