I've defined an application name using the bootstrap.yml file in my spring boot application.
spring: application: name: abc
How can i get this application name during runtime/programmatically ?
You should be able to use the @Value annotation to access any property you set in a properties/YAML file:
@Value("${spring.application.name}") private String appName;
1.4m articles
1.4m replys
5 comments
57.0k users