Created
June 12, 2016 13:52
-
-
Save HDBandit/99592df72a8ab76724cd2a42cb30f3a1 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