Reputation: 2712
Into my application.yml there is a property : eureka.instance.appname
How can i access it from my Rest Controller?
Upvotes: 0
Views: 273
Reputation: 1468
In the parameters of you controller method you can add
@Value("${eureka.instance.appname}") String eurekaName
which you can use further.
Upvotes: 2