解決方法:能夠經過再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