Last active
February 28, 2016 04:14
-
-
Save jhURJQVxkx/13877616b0054bfdbc6e to your computer and use it in GitHub Desktop.
NetBeansでJava WebAPI(JAX-RS jersey) ref: http://qiita.com/kaishero/items/c699c63619a76992b6f8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package javasample.jaxrswebapi; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.core.MediaType; | |
@Path("/") | |
public class NewClass { | |
@GET | |
@Produces(MediaType.TEXT_PLAIN) | |
public String getMethod() { | |
return "OK"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment