Specifying the dependency of the JAX-RS API

To use JAX-RS APIs in your project, you need to add the javax.ws.rs-api JAR file to the class path. If the consuming project uses Maven for building the source, the dependency entry for the javax.ws.rs-api JAR file in the Project Object Model (POM) file may look like the following:

<dependency> 
    <groupId>javax.ws.rs</groupId> 
    <artifactId>javax.ws.rs-api</artifactId> 
    <version>2.0.1</version><!-- set the right version --> 
    <scope>provided</scope><!-- compile time dependency --> 
</dependency> 
Refer to https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api for the latest versions of JAX-RS API.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.86.18