This page gives you a quick reference to get javax.servlet-api dependency for Maven or Gradle projects. You can also download the javax.servlet-api jar dependency, the link given at the "Download JAR File" section.
Java Servlet API » 4.0.1
Java Servlet API
javax.servlet-api maven dependency
Copy below javax.servlet-api maven dependency and paste in your project pom.xml file:
<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
javax.servlet-api gradle dependency
Copy below javax.servlet-api Gradle dependency and paste in your project build.gradle file:
// https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api
providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
Download JAR File
Check for Other Releases
Reference
- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api/4.0.1
- https://javaee.github.io/servlet-spec/
Comments
Post a Comment