I have the following spring-boot 1.4.2.RELEASE sample application
@SpringBootApplication public class Application { @Value("${spring.application.name}") private String applicationName; public static void main(String[] args) { SpringApplication.run(Application.class, args); } }
And I have the following configuration defined in bootstrap.properties:
spring.application.name=sample-app
When I start, I get the following error:
java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.application.name' in string value "${spring.application.name}"
Any hint on why it is not able to insert 'spring.application.name'? You need to define it there to support another spring boot cloud.
source share