## page was renamed from jersey = jersey = RESTful Web Services in Java. == Maven archetype == {{{ mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-webapp \ -DarchetypeGroupId=org.glassfish.jersey.archetypes \ -DinteractiveMode=false \ -DgroupId=com.example \ -DartifactId=simple-service-webapp \ -Dpackage=com.example \ -DarchetypeVersion=2.9 }}} == Maven dependency == {{{#!highlight xml com.sun.jersey jersey-server 2.9 }}} == Jersey 1.XX web.xml sample == {{{ JAX-RS Tools Generated - Do not modify JAX-RS Servlet com.sun.jersey.spi.container.servlet.ServletContainer 1 JAX-RS Servlet /* }}} == Jersey 1.XX Rest Service Sample == {{{ package org.allowed.bitarus; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; @Path("svctest") public class TestService { @GET @Produces(MediaType.APPLICATION_JSON) public String testGet() { return "ResidentService Hello world !!!"; } } }}}