@RequestMapping("/line3")
@ResponseBody
public void linechart3 () {
String host = "XXXX";
int port = XXXX;
Jedis jedis = new Jedis(host, port);
try {
String authString = jedis.auth("XXXX");
if (!authString.equals("OK"))
{
System.err.println("AUTH Failed: " + authString);
return;
}
}catch (Exception e) {
e.printStackTrace();
}finally{
jedis.quit();
jedis.close();
}
}
密码账号端口经检查没错
代码如下:
报 connect time out错误
1,网速可能是个问题,
2,这个问题产生的原因是某个页面中有一部分内容是可以指定获取某频道数据的,但是这部分内容又是存在Redis中的,所以,,,