根据环境配置文件加载@Setting?

时间:2018-03-02 15:46:33

标签: java spring-boot elasticsearch

我们可以以某种方式使用org.springframework.data.elasticsearch.annotations.Setting分别为qa和prod配置文件加载配置吗?任何解决方法?

@Setting(settingPath = "/settings/index-settings.json")
@Document
public class Data {

} 

resources/settings/qa.index-settings.json
resources/settings/prod.index-settings.json

0 个答案:

没有答案