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

前端 未结 3 550
后悔当初
后悔当初 2021-01-13 23:31

I am working through examples in Restful Java with JAX-RS by Bill Burke. I\'m using intellij and created a Maven project to make a \"Hello World\" web service. I understan

相关标签:
3条回答
  • 2021-01-13 23:37

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

    http://search.maven.org/

    0 讨论(0)
  • 2021-01-13 23:39

    Try searching for the class on Central. It looks like jaxrs-api is what you're looking for; there are a couple of different packagers, and which one you want is probably whichever goes with your container.

    0 讨论(0)
  • 2021-01-13 23:53

    Add below lines in pom.xml

    <dependency>
        <groupId>javax.ws.rs</groupId>
        <artifactId>javax.ws.rs-api</artifactId>
        <version>2.0</version>
    </dependency>
    
    0 讨论(0)
提交回复
热议问题