What is the Maven Artifact Contains javax.ws.rs.Path?

I am working on examples in Restful Java with JAX-RS Bill Burke. I use intellij and created a Maven project to create the Hello World web service. I understand that JAX-RS is a specification, not an implementation. I would like to try the Apache CXF implementation.

How to find out what a jar or Maven artifact contains the necessary classes:

import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.GET; 
+4
source share
3 answers

Try searching for the Center class. It seems jaxrs-api is what you are looking for; There are several different packers, and which one you need, probably depending on your container.

+3
source

Add below lines to pom.xml

 <dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> <version>2.0</version> </dependency> 
+6
source

g: "javax.ws.rs" And a: "jsr311-api"

http://search.maven.org/

+4
source

Source: https://habr.com/ru/post/1496073/


All Articles