feat: 升级SpringBoot和SpringCloud版本
This commit is contained in:
+2
@@ -4,6 +4,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 索引配置
|
||||
@@ -14,6 +15,7 @@ import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
@Getter
|
||||
@ConfigurationProperties(prefix = "zlt.indices")
|
||||
@RefreshScope
|
||||
@Component
|
||||
public class IndexProperties {
|
||||
/**
|
||||
* 配置过滤的索引名:默认只显示这些索引
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
spring:
|
||||
elasticsearch:
|
||||
rest:
|
||||
uris: ${zlt.elasticsearch.uris}
|
||||
username: ${zlt.elasticsearch.username}
|
||||
password: ${zlt.elasticsearch.password}
|
||||
uris: ${zlt.elasticsearch.uris}
|
||||
username: ${zlt.elasticsearch.username}
|
||||
password: ${zlt.elasticsearch.password}
|
||||
|
||||
zlt:
|
||||
indices:
|
||||
|
||||
Reference in New Issue
Block a user