From 124f41967252cbd669bf2efd2713b139d85fb450 Mon Sep 17 00:00:00 2001 From: ronger Date: Mon, 30 Mar 2020 17:16:52 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20=E5=88=A0=E9=99=A4=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vertical/config/RedisProperties.java | 124 ------------------ 1 file changed, 124 deletions(-) delete mode 100644 src/main/java/com/rymcu/vertical/config/RedisProperties.java diff --git a/src/main/java/com/rymcu/vertical/config/RedisProperties.java b/src/main/java/com/rymcu/vertical/config/RedisProperties.java deleted file mode 100644 index 02ae5d2..0000000 --- a/src/main/java/com/rymcu/vertical/config/RedisProperties.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.rymcu.vertical.config; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import redis.clients.jedis.JedisPoolConfig; -import redis.clients.jedis.Protocol; - -import javax.net.ssl.HostnameVerifier; -import javax.net.ssl.SSLParameters; -import javax.net.ssl.SSLSocketFactory; - -/** - * @author 007 - */ -@ConfigurationProperties(prefix = "spring.redis") -public class RedisProperties extends JedisPoolConfig { - private String host = Protocol.DEFAULT_HOST; - private int port = Protocol.DEFAULT_PORT; - private String password; - private int database = 1; - private int connectionTimeout = Protocol.DEFAULT_TIMEOUT; - private int soTimeout = Protocol.DEFAULT_TIMEOUT; - private String clientName; - private boolean ssl; - private SSLSocketFactory sslSocketFactory; - private SSLParameters sslParameters; - private HostnameVerifier hostnameVerifier; - - public boolean isSsl() { - return ssl; - } - - public void setSsl(boolean ssl) { - this.ssl = ssl; - } - - public SSLSocketFactory getSslSocketFactory() { - return sslSocketFactory; - } - - public void setSslSocketFactory(SSLSocketFactory sslSocketFactory) { - this.sslSocketFactory = sslSocketFactory; - } - - public SSLParameters getSslParameters() { - return sslParameters; - } - - public void setSslParameters(SSLParameters sslParameters) { - this.sslParameters = sslParameters; - } - - public HostnameVerifier getHostnameVerifier() { - return hostnameVerifier; - } - - public void setHostnameVerifier(HostnameVerifier hostnameVerifier) { - this.hostnameVerifier = hostnameVerifier; - } - - public String getHost() { - return host; - } - - public void setHost(String host) { - if (host == null || "".equals(host)) { - host = Protocol.DEFAULT_HOST; - } - this.host = host; - } - - public int getPort() { - return port; - } - - public void setPort(int port) { - this.port = port; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - if ("".equals(password)) { - password = null; - } - this.password = password; - } - - public int getDatabase() { - return database; - } - - public void setDatabase(int database) { - this.database = database; - } - - public String getClientName() { - return clientName; - } - - public void setClientName(String clientName) { - if ("".equals(clientName)) { - clientName = null; - } - this.clientName = clientName; - } - - public int getConnectionTimeout() { - return connectionTimeout; - } - - public void setConnectionTimeout(int connectionTimeout) { - this.connectionTimeout = connectionTimeout; - } - - public int getSoTimeout() { - return soTimeout; - } - - public void setSoTimeout(int soTimeout) { - this.soTimeout = soTimeout; - } -}