控制台信息:The method getDispatcherType() is undefined for the type HttpServletRequest 因为servlet-api.jar版本过低或者是Tomcat版本过高: 解决方案: 1.调整 servlet-api.jar的版本 2.降低Tomcat版本