什么Maven工件包含javax.ws.rs.Path? [英] What Maven Artifact Contains javax.ws.rs.Path?
问题描述
我正在使用Bill Burke的JAX-RS Restful Java中的示例。我正在使用intellij并创建了一个Maven项目来创建一个Hello WorldWeb服务。我知道JAX-RS是一个规范,而不是一个实现。我想尝试Apache CXF实现。
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 understand that JAX-RS is a specification, and not an implementation. I would like to try the Apache CXF implementation.
如何找出哪个jar或Maven工件包含必要的类:
How do I find out what jar, or what Maven artifact contains the necessary classes to:
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.GET;
推荐答案
尝试在中央。它看起来像 jaxrs-api
正是你要找的;有几个不同的包装商,你想要哪一个可能与你的容器有关。
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.
这篇关于什么Maven工件包含javax.ws.rs.Path?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!