记录一下,水平太菜,花费了半天时间。
pom.xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
- Another way is to edit the project facet configuration file itself:
org.eclipse.wst.common.project.facet.core.xml
- Change the dynamic web module version in this line to 3.1 –
<installed facet="jst.web" version="3.0"/>
- And then Maven -> Update Project. You’ll find this file in the .settings directory within the Eclipse project
时间: 2024-10-10 00:42:27