解决方法:能够经过再pom.xml中添加代码解决html
<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency>
参考来源:http://www.javashuo.com/article/p-syolmrvh-ga.htmljava