Created
January 18, 2020 15:38
-
-
Save sayadi/58bf04a3ee8e8dd32b3d70e1071ba227 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
@RestController | |
@RequestMapping("/properties") | |
public class PropertyController { | |
private final Environment environment; | |
@Autowired | |
public PropertyController( | |
Environment environment) { | |
this.environment = environment; | |
} | |
@GetMapping | |
public String getProperty(@NotNull String key) { | |
return environment.getProperty(key); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment