elasticsearch.serverNames = default
elasticUser=admin
elasticPassword=admin
elasticsearch.rest.hostNames=127.0.0.1:9200
elasticsearch.dateFormat=yyyy.MM.dd
elasticsearch.timeZone=Asia/Shanghai
elasticsearch.showTemplate=false
elasticsearch.discoverHost=true
elasticsearch.useHttps=false
elasticsearch.sliceScrollThreadCount=100
elasticsearch.sliceScrollThreadQueue=100
elasticsearch.sliceScrollBlockedWaitTimeout=0
elasticsearch.scrollThreadCount=50
elasticsearch.scrollThreadQueue=50
elasticsearch.scrollBlockedWaitTimeout=0
elasticsearch.includeTypeName = false
http.timeoutConnection = 10000
http.timeoutSocket = 50000
http.connectionRequestTimeout=10000
http.retryTime = 3
http.retryInterval = 3000
http.maxLineLength = -1
http.maxHeaderCount = 200
http.maxTotal = 400
http.defaultMaxPerRoute = 200
http.soReuseAddress = false
http.soKeepAlive = false
http.timeToLive = 3600000
http.keepAlive = 3600000
http.hostnameVerifier =
http.evictExpiredConnections=true
http.validateAfterInactivity=3000
http.staleConnectionCheckEnabled=false
http.customHttpRequestRetryHandler=org.frameworkset.spi.remote.http.ConnectionResetHttpRequestRetryHandler
dslfile.refreshInterval = 5000
db.name = test
db.user = root
db.password = 123456
db.driver = com.mysql.jdbc.Driver
db.url = jdbc:mysql://localhost:3306/test?useCursorFetch=true
db.usePool = true
db.validateSQL = select 1
db.jdbcFetchSize = 10000
db.showsql = true
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ElasticsearchConfig {
@Value("${db.name}")
private String dbName;
@Value("${db.user}")
private String dbUser;
@Value("${db.password}")
private String dbPassword;
@Value("${db.driver}")
private String dbDriver;
@Value("${db.url}")
private String dbUrl;
@Value("${db.usePool}")
private Boolean dbUsePool;
@Value("${db.validateSQL}")
private String dbValidateSQL;
@Value("${db.jdbcFetchSize}")
private Long dbJdbcFetchSize;
public String getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName;
}
public String getDbUser() {
return dbUser;
}
public void setDbUser(String dbUser) {
this.dbUser = dbUser;
}
public String getDbPassword() {
return dbPassword;
}
public void setDbPassword(String dbPassword) {
this.dbPassword = dbPassword;
}
public String getDbDriver() {
return dbDriver;
}
public void setDbDriver(String dbDriver) {
this.dbDriver = dbDriver;
}
public String getDbUrl() {
return dbUrl;
}
public void setDbUrl(String dbUrl) {
this.dbUrl = dbUrl;
}
public Boolean getDbUsePool