feat 修改了一些搜索模块
This commit is contained in:
@@ -50,7 +50,6 @@ public class ElasticsearchConfig {
|
||||
if (client != null) {
|
||||
client.close();
|
||||
}
|
||||
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
package com.adc.da.search.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Data
|
||||
@ConfigurationProperties(prefix = "elasticsearch")
|
||||
public class ElasticsearchProperties {
|
||||
private String clustername;
|
||||
@@ -11,35 +14,4 @@ public class ElasticsearchProperties {
|
||||
private Integer port;
|
||||
private Integer poolSize;
|
||||
|
||||
public String getClustername() {
|
||||
return clustername;
|
||||
}
|
||||
|
||||
public void setClustername(String clustername) {
|
||||
this.clustername = clustername;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public Integer getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public Integer getPoolSize() {
|
||||
return poolSize;
|
||||
}
|
||||
|
||||
public void setPoolSize(Integer poolSize) {
|
||||
this.poolSize = poolSize;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user