Last active
March 31, 2023 08:34
-
-
Save yostane/6ba0c09ebae42174cdcf0377725ef781 to your computer and use it in GitHub Desktop.
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
| import org.eclipse.microprofile.config.inject.ConfigProperty; | |
| import javax.inject.Inject; | |
| import javax.ws.rs.*; | |
| import javax.ws.rs.core.Response; | |
| @Path("sample") | |
| public class SampleResource { | |
| @Inject | |
| @ConfigProperty(name = "message") | |
| private String message; | |
| @GET | |
| public Response message() { | |
| return Response.ok(message).build(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment