2018년 3월 11일 일요일

The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path [duplicate]

The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path [duplicate]

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

configurations {
    provided
}
sourceSets {
    main { compileClasspath += configurations.provided }
}
dependencies {
    provided 'javax.servlet:javax.servlet-api:3.1.0'
}

댓글 없음:

댓글 쓰기