A slight revision of @fivetenwill’s answer, which works for me on Spring Boot 1.4.3.RELEASE:
foo:
"[bar.com]":
a: b
"[baz.com]":
a: c
You need the brackets to be inside quotes, otherwise the YAML parser basically discards them before they get to Spring, and they don’t make it into the property name.
More Related Contents:
- How to configure rolling file appender within Spring Boot’s application.yml
- Spring Boot – Loading Initial Data
- Spring Boot not serving static content
- Spring Boot JPA – configuring auto reconnect
- Springboot/Angular2 – How to handle HTML5 urls?
- ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
- Fire and forget with reactor
- Disable all Database related auto configuration in Spring Boot
- Spring Boot CORS filter – CORS preflight channel did not succeed
- Spring Data – ignore parameter if it has a null value
- How to java-configure separate datasources for spring batch data and business data? Should I even do it?
- Where to put static files such as CSS in a spring-boot project?
- implement dynamically datasource in spring data jpa
- Spring Batch With Annotation and Caching
- Spring boot and SQLite
- Spring boot how to read properties file outside jar
- No property found for type… custom Spring Data repository
- Spring Security: mapping OAuth2 claims with roles to secure Resource Server endpoints
- Spring batch scope issue while using spring boot
- How to use multiple login pages one for admin and the other one for user
- Configure Multiple MongoDB repositories with Spring Data Mongo
- How can I specify my .keystore file with Spring Boot and Tomcat?
- How to prevent Spring Boot daemon/server application from closing/shutting down immediately?
- How to allow a User only access their own data in Spring Boot / Spring Security?
- Spring – How to stream large multipart file uploads to database without storing on local file system [duplicate]
- With Spring Data REST, why is the @Version property becoming an ETag and not included in the representation?
- Where to handle Exceptions in Spring Applications
- One Spring Boot project, deploy to both JAR or WAR
- How to add a custom health check in spring boot health?
- @SpringBootTest vs @ContextConfiguration vs @Import in Spring Boot Unit Test