使用PropertySource批注并为你的应用程序提供两个来源:
@PropertySources({
@PropertySource("classpath:app-common.properties"),
@PropertySource("classpath:app.properties")
})
Spring Boot从依赖项继承application.properties
使用PropertySource批注并为你的应用程序提供两个来源:
@PropertySources({
@PropertySource("classpath:app-common.properties"),
@PropertySource("classpath:app.properties")
})