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;
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;