kgdxpr 2 years ago
commit 03970db413

@ -64,7 +64,6 @@ public class Start extends JFinalConfig {
// 加载少量必要配置随后可用PropKit.get(...)获取值 // 加载少量必要配置随后可用PropKit.get(...)获取值
PropKit.use("application.properties"); PropKit.use("application.properties");
System.out.println(PropKit.get("driverClassName"));
//配置统一的错误页面 //配置统一的错误页面
me.setError404View("/html/common/404/index.html"); me.setError404View("/html/common/404/index.html");
} }

@ -23,7 +23,8 @@ public class RedisKit {
} }
public static boolean Exists(String key) { public static boolean Exists(String key) {
return Redis.use().call(jedis -> jedis.exists(key)); if (Redis.use() != null) return Redis.use().call(jedis -> jedis.exists(key));
return false;
} }

Loading…
Cancel
Save