JavaWebServlet错误
2021-02-02 22:15
标签:com group run code pre style nbsp tomcat7 tomcat 添加JDK1.8插件 使用tomcat7:run运行即可 JavaWebServlet错误 标签:com group run code pre style nbsp tomcat7 tomcat 原文地址:https://www.cnblogs.com/chao666/p/12807378.htmlorg.apache.jasper.JasperException: Unable to compile class for JSP:
因为maven默认tomcat插件版本是tomcat6我的jdk是1.8所以需要更换tomcat版本到7以上
添加tomcat7插件 plugin>
groupId>org.apache.tomcat.mavengroupId>
artifactId>tomcat7-maven-pluginartifactId>
version>2.2version>
plugin>
plugin>
groupId>org.apache.maven.pluginsgroupId>
artifactId>maven-compiler-pluginartifactId>
configuration>
source>1.8source>
target>1.8target>
configuration>
plugin>