In Spring Boot, I know that I can replace application.properties with application.yml and use the YAML format.
However, my application.yml is getting crowded so I need to split it up a bit. How can I do that? I would like to do something like this:
...
@Configuration
@EnableAutoConfiguration
@EnableWebMvc
@EnableScheduling
@PropertySource({"classpath:application.yml", "classpath:scheduling.yml"})
public class ApplicationConfig {
...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…