Skip to content

Instantly share code, notes, and snippets.

@omeuerodrigofreitas
Last active July 30, 2019 22:50
Show Gist options
  • Save omeuerodrigofreitas/71134f11deae1aea24aa219194aa2215 to your computer and use it in GitHub Desktop.
Save omeuerodrigofreitas/71134f11deae1aea24aa219194aa2215 to your computer and use it in GitHub Desktop.
Nossa classe HelloWordResource deverá ficar assim:
package br.com.rodrigofreitas.meuapp.resource;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("/hello")
public class HelloWordResource {
@GET
@Produces(MediaType.TEXT_PLAIN)
public String hello() {
return "hello";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment