Skip to content

Instantly share code, notes, and snippets.

@jreyes
Created January 3, 2012 02:22
Show Gist options
  • Save jreyes/1553147 to your computer and use it in GitHub Desktop.
Save jreyes/1553147 to your computer and use it in GitHub Desktop.
REST with Jersey
<servlet>
<servlet-name>Jersey</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>com.vaporwarecorp.rest.server</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Jersey</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment