3logy
3logy

Reputation: 2712

How to access application properties from controller/service with jhipster?

Into my application.yml there is a property : eureka.instance.appname

How can i access it from my Rest Controller?

Upvotes: 0

Views: 273

Answers (1)

Woworks
Woworks

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

Related Questions