启动服务器时出现此错误? ' java.lang.ClassFormatError:JVMCFRE074未指定Code属性; class = javax / servlet / http / HttpServlet,method =()V,pc = 0'
有人可以帮我解决这个问题吗?
答案 0 :(得分:2)
尝试从依赖项中排除javaee-api:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<classpathDependencyExcludes>
<classpathDependencyExclude>javax:javaee-api</classpathDependencyExclude>
</classpathDependencyExcludes>
</configuration>
</plugin>