Maven工程中web項目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path錯

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

相關文章
相關標籤/搜索