打开下面栏problem查看问题描述,一般通常是版本问题。注意project facts,workspace,web.xml,pom.xml里版本一致(Java版本和dy版本),然后maven update。
pom.xml如需要添加如下
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>