i've defined application name using bootstrap.yml file in spring boot application.
spring: application: name: abc how can application name during runtime/programmatically ?
you should able use @value annotation access property set in properties/yaml file:
@value("${spring.application.name}") private string appname;
Comments
Post a Comment