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