1. 程式人生 > >The method getDispatcherType() is undefined for the type HttpServletRequest 升級到tomcat8

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