1. getDispatcherType() is undefined for the type HttpServletRequest
<dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency>maven 错最好还是在maven中解决