1. 程式人生 > >Jersey 2.x 伺服器端應用支援的容器

Jersey 2.x 伺服器端應用支援的容器

基於 JAX-RS Servlet-based 部署的一部分標準,能執行在任何支援 Servlet 2.5 和更高標準的的容器上。Jersey 提供支援程式化部署在下面的容器中:Grizzly 2 (HTTP 和 Servlet), JDK Http server,Simple Http server 和 Jetty Http server

本章節僅僅提供了需要 Maven 提供的依賴,有關更多的細節,請參考 Chapter 4, Application Deployment and Runtime Environments 頁面中的內容。

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 <dependency>      <groupId>org.glassfish.jersey.containers</groupId>      <artifactId>jersey-container-grizzly2-http</artifactId>
     <version>2.27</version> </dependency>   <dependency>      <groupId>org.glassfish.jersey.containers</groupId>
     <artifactId>jersey-container-grizzly2-servlet</artifactId>      <version>2.27</version> </dependency>   <dependency>      <groupId>org.glassfish.jersey.containers</groupId>      <artifactId>jersey-container-jdk-http</artifactId>      <version>2.27</version> </dependency>   <dependency>      <groupId>org.glassfish.jersey.containers</groupId>      <artifactId>jersey-container-simple-http</artifactId>      <version>2.27</version> </dependency>   <dependency>      <groupId>org.glassfish.jersey.containers</groupId>      <artifactId>jersey-container-jetty-http</artifactId>      <version>2.27</version> </dependency>   <dependency>      <groupId>org.glassfish.jersey.containers</groupId>      <artifactId>jersey-container-jetty-servlet</artifactId>      <version>2.27</version> </dependency>

https://www.cwiki.us/display/JERSEYZH/Common+Jersey+Use+Cases