【发布时间】:2016-11-01 00:28:33
【问题描述】:
我正在尝试在
中动态获取indexname
@Document(indexName="Something",type="type")
我尝试过使用以下代码:
@Document(indexName="#{systemProperties['databaseName'] }", type = "dbtype")
但在运行时,当我从 UI 发送两个请求以从不同索引的 ES 获取数据时,它无法正常工作。
我应该怎么做才能解决这个问题?
【问题讨论】:
标签: spring spring-security spring-boot spring-data spring-data-elasticsearch