The method getDispatcherType() is undefined for the type HttpServletRequest 升级到tomcat8(转)

配置项目,从tomcat低版本,放到tomcat8时,正常的项目居然报错了:

The method getDispatcherType() is undefined for the type HttpServletRequest

从网上查资料,找可能出现这个问题的因素:

1可能是环境变量,检查了没问题

2有人说jar包冲突

对于servlet-api.jar这个包,原来工程中有,在旧的tomcat版本中,如果不加,会出问题,新的版本中加了会有问题,删除这个包,重启,ok

http://blog.csdn.net/llwan/article/details/44562519

原文地址:https://www.cnblogs.com/softidea/p/5361962.html