浏览代码

jfinal 4.6

James 6 年之前
父节点
当前提交
4a82052b9e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/jfinal/plugin/redis/RedisPlugin.java

+ 2 - 2
src/main/java/com/jfinal/plugin/redis/RedisPlugin.java

@@ -66,8 +66,8 @@ public class RedisPlugin implements IPlugin {
 	
 	
 	public RedisPlugin(String cacheName, String host, int port, int timeout, String password) {
 	public RedisPlugin(String cacheName, String host, int port, int timeout, String password) {
 		this(cacheName, host, port, timeout);
 		this(cacheName, host, port, timeout);
-		if (StrKit.isBlank(password))
-			throw new IllegalArgumentException("password can not be blank.");
+		// if (StrKit.isBlank(password))
+			// throw new IllegalArgumentException("password can not be blank.");
 		this.password = password;
 		this.password = password;
 	}
 	}