Last active
July 30, 2019 22:50
-
-
Save omeuerodrigofreitas/71134f11deae1aea24aa219194aa2215 to your computer and use it in GitHub Desktop.
Nossa classe HelloWordResource deverá ficar assim:
This file contains hidden or 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 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