Unable to compile class for JSP

来源:互联网 发布:庞门正道阿门知乎 编辑:程序博客网 时间:2024/06/06 04:09

控制台信息:The method getDispatcherType()is undefined for the type HttpServletRequest

因为servlet-api.jar版本过低或者是Tomcat版本过高:
解决方案:
1.调整servlet-api.jar的版本
2.降低Tomcat版本