springmvc报org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at

springmvc访问页面报

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 1 in the generated java file
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files。

解决方法:

  1.看是否缺少一下依赖

        
            javax.servlet
            jstl
            1.2
        

        
            javax.servlet
            javax.servlet-api
            3.1.0
            provided
        

        
            javax.servlet.jsp
            jsp-api
            2.2
            provided
        

2.检查一下Tomcat的版本

  如果你使用的是Tomcat7但是使用jdk是1.8,需要将1.8改为1.7即可,修改如下:

springmvc报org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at_第1张图片

你可能感兴趣的:(spring)