Advertisement
Guest User

Untitled

a guest
May 1st, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. package org.qandeel.ConnectingToNode;
  2.  
  3. import javax.ws.rs.GET;
  4.  
  5. import javax.ws.rs.Path;
  6.  
  7. import javax.ws.rs.Produces;
  8.  
  9. import javax.ws.rs.core.MediaType;
  10.  
  11.  
  12. /**
  13. * Root resource (exposed at "myresource" path)
  14. */
  15.  
  16. @Path("myresource")
  17.  
  18. public class MyResource {
  19.  
  20.  
  21. @GET
  22. @Produces(MediaType.APPLICATION_JSON)
  23. public String hello() {
  24. return "Hello
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement