Created
June 12, 2019 17:34
-
-
Save recursivecodes/03a8e8f1227d620f35978f41db05b0ed 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
| @Controller("/metadata") | |
| public class MetadataController { | |
| final static Logger logger = LoggerFactory.getLogger(MetadataController.class); | |
| private ServiceInstance serviceInstance; | |
| @Inject ApplicationContext applicationContext; | |
| String testConfigValue = null; | |
| @Inject | |
| MetadataController( @Property(name="test") String test ){ | |
| this.testConfigValue = test; | |
| } | |
| @EventListener | |
| void onServiceStarted(ServiceStartedEvent event) { | |
| ServiceInstance serviceInstance = event.getSource(); | |
| this.serviceInstance = serviceInstance; | |
| } | |
| @Get("/") | |
| public HttpStatus index() { | |
| return HttpStatus.OK; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment