diff --git a/db/galaxy_user_mysql.sql b/db/galaxy_user_mysql.sql
index e3f27d6..7cacedf 100644
--- a/db/galaxy_user_mysql.sql
+++ b/db/galaxy_user_mysql.sql
@@ -6,9 +6,9 @@ set global read_only=0;
create user 'galaxy'@'%' identified by 'ceiec2018!';
-create database galaxy_test DEFAULT CHARSET utf8mb4 COLLATE utf8mb4_general_ci;
+create database galaxy-service DEFAULT CHARSET utf8mb4 COLLATE utf8mb4_general_ci;
-grant all privileges on galaxy_test.* to 'galaxy'@'%' identified by 'ceiec2018!';
+grant all privileges on galaxy-service.* to 'galaxy'@'%' identified by 'ceiec2018!';
flush privileges;
diff --git a/src/main/java/com/nis/util/JedisUtils.java b/src/main/java/com/nis/util/JedisUtils.java
index 54ea353..4c1d949 100644
--- a/src/main/java/com/nis/util/JedisUtils.java
+++ b/src/main/java/com/nis/util/JedisUtils.java
@@ -6,24 +6,22 @@ import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import redis.clients.jedis.Jedis;
-import redis.clients.jedis.JedisPool;
-import redis.clients.jedis.exceptions.JedisException;
-
import com.google.common.collect.Lists;
import com.nis.restful.RestBusinessCode;
import com.nis.restful.ServiceRuntimeException;
import com.nis.web.service.SpringContextHolder;
+import redis.clients.jedis.Jedis;
+import redis.clients.jedis.JedisSentinelPool;
+import redis.clients.jedis.exceptions.JedisException;
+
public class JedisUtils {
private static Logger logger = LoggerFactory.getLogger(JedisUtils.class);
- private static final JedisPool jedisPool = SpringContextHolder.getBean(JedisPool.class);
/**
* 获取缓存
*
- * @param key
- * 键
+ * @param key 键
* @return 值
*/
public static String get(String key, int redisDb) {
@@ -48,8 +46,7 @@ public class JedisUtils {
/**
* 获取缓存
*
- * @param key
- * 键
+ * @param key 键
* @return 值
*/
public static Object getObject(String key, int redisDb) {
@@ -74,10 +71,8 @@ public class JedisUtils {
* 可以作为获取唯一id的方法
* 将key对应的value加上指定的值,只有value可以转为数字时该方法才可用
*
- * @param String
- * key
- * @param long
- * number 要减去的值
+ * @param String key
+ * @param long number 要减去的值
* @return long 相加后的值
*/
public static long incrBy(String key, long number, int redisDb) {
@@ -90,12 +85,9 @@ public class JedisUtils {
/**
* 设置缓存
*
- * @param key
- * 键
- * @param value
- * 值
- * @param cacheSeconds
- * 超时时间,0为不超时
+ * @param key 键
+ * @param value 值
+ * @param cacheSeconds 超时时间,0为不超时
* @return
*/
public static String set(String key, String value, int cacheSeconds, int redisDb) {
@@ -120,8 +112,7 @@ public class JedisUtils {
/**
* 获取List缓存
*
- * @param key
- * 键
+ * @param key 键
* @return 值
*/
public static List getList(String key, int redisDb) {
@@ -145,8 +136,7 @@ public class JedisUtils {
/**
* 获取List缓存
*
- * @param key
- * 键
+ * @param key 键
* @return 值
*/
public static List