Resource specification not allowed here for source level below 1.7

阅读更多

现象:tomcat能正常启动,但打开页面时,出现上面的错误。

原因:就是jsp编译的版本不对。

因为tomcat7默认jsp的编译级别为1.6

1.解决方法:

工程名右键属性-java里设置jdk为1.7.

2.解决方法: 

修改conf/web.xml

             jsp

             org.apache.jasper.servlet.JspServlet

             fork

             false

             xpoweredBy

             false

             compilerSourceVM

             1.7

             compilerTargetVM

             1.7

             3

 

 

你可能感兴趣的:(Resource specification not allowed here for source level below 1.7)