报错内容如下 解决方法 pom.xml 下在dependencies下添加Servlet依赖,并刷新Maven <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api<