javax.servlet.http.HttpServlet" was not found on the Java Build Path

问题解决(以maven为例):

只需在pom.xml导入对应的两个依赖即可解决该问题:

        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
            <version>2.1</version>
        </dependency>

        
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
        </dependency>

 

posted @ 2019-02-17 13:12  挑战者V  阅读(447)  评论(0编辑  收藏  举报