Created
June 12, 2016 13:27
-
-
Save HDBandit/3c924d5ced89b270f26ffe40d1c9b404 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
@RestController | |
@RequestMapping("/example") | |
@RefreshScope | |
public class ExampleService { | |
@Value("${message.hello}") | |
private String message; | |
@RequestMapping(method = RequestMethod.GET) | |
public String getExample() { | |
return message; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment