![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
后台
文章平均质量分 56
安醉凉丶
只有成功,才能得到认可,Fighting for me
展开
-
正则表达式手记
public static String getLogTime(String time) { SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//1 SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd'T'HH:m原创 2017-06-05 14:14:43 · 349 阅读 · 0 评论 -
redis异常解决:jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set
首先描述一下碰到问题的过程: 我们测试环境用的阿里云的redis,并没有设置密码.然后我一个boot项目也要用这个redis,但是启动不报错,使用时候却报这个错.搞了一天也没能解决.后来请教一个大神,说是spring配置文件密码为空的话,会传一个""空字符串.所以需要判断一下密码是否为空,空的话设置成null就不会走授权了....原创 2018-08-21 11:41:53 · 1390 阅读 · 0 评论