Advertisement
Guest User

Jersey

a guest
Oct 28th, 2015
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.42 KB | None | 0 0
  1. <dependency>
  2.             <groupId>org.glassfish.jersey.core</groupId>
  3.             <artifactId>jersey-server</artifactId>
  4.             <version>2.21</version>
  5.         </dependency>
  6.         <dependency>
  7.             <groupId>org.glassfish.jersey.containers</groupId>
  8.             <artifactId>jersey-container-servlet</artifactId>
  9.             <version>2.21</version>
  10.         </dependency>
  11.         <dependency>
  12.             <groupId>org.glassfish.jersey.media</groupId>
  13.             <artifactId>jersey-media-json-jackson</artifactId>
  14.             <version>2.21</version>
  15.             <scope>runtime</scope>
  16.         </dependency>
  17.  
  18.         <dependency>
  19.             <groupId>org.glassfish.jersey.ext</groupId>
  20.             <artifactId>jersey-spring3</artifactId>
  21.             <version>2.21</version>
  22.             <exclusions>
  23.                 <exclusion>
  24.                     <groupId>org.springframework</groupId>
  25.                     <artifactId>spring-core</artifactId>
  26.                 </exclusion>
  27.                 <exclusion>
  28.                     <groupId>org.springframework</groupId>
  29.                     <artifactId>spring-web</artifactId>
  30.                 </exclusion>
  31.                 <exclusion>
  32.                     <groupId>org.springframework</groupId>
  33.                     <artifactId>spring-beans</artifactId>
  34.                 </exclusion>
  35.             </exclusions>
  36.         </dependency>
  37.  
  38.  
  39. Web.xml
  40.  
  41.  
  42. <servlet>
  43.         <servlet-name>Jersey REST Service</servlet-name>
  44.         <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
  45.          <init-param>
  46.             <param-name>jersey.config.server.provider.packages</param-name>
  47.             <param-value>br.com.webservice.rest</param-value>
  48.         </init-param>
  49.         <load-on-startup>1</load-on-startup>
  50.     </servlet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement