Last active
July 10, 2020 22:00
-
-
Save eldermoraes/76185aedf5610a0b5f1194121765b3e6 to your computer and use it in GitHub Desktop.
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
@Path("/config") | |
public class ConfigResource { | |
@ConfigProperty(name = "config") | |
private Optional<String> config; | |
@GET | |
@Produces(MediaType.APPLICATION_JSON) | |
public Response getConfig(){ | |
return Response.ok("Hello, " + config.orElse("Optional")).build() ; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment