2018年11月15日

时间戳获取 天/月/日等until

摘要: /** * 时间戳 获取第n天(负数则是前几天,正数则是往后) */ public Long getday(int a){ SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); Date date=new Date(); Calendar calendar = ... 阅读全文

posted @ 2018-11-15 15:08 才小有 阅读(2699) 评论(0) 推荐(0) 编辑

2018年10月18日

navicat连接msql Client does not support authentication protocol requested by server; consider upgrading MySQL client

摘要: alter user 'root'@'localhost' identified with mysql_native_password by '****'; flush privileges; 进入权限后是 mysql-> 这样,输入上面的取修改密码 千万别忘了最后面的分号!!!! ;;; 阅读全文

posted @ 2018-10-18 14:17 才小有 阅读(215) 评论(0) 推荐(0) 编辑

2018年10月15日

类初始化和构造器初始化的区别

摘要: 初始化未定义的s3被构造器的覆盖了,也就是构造器内的初始化会覆盖类初始化的域。代码来自thinking 练习题的一个大神。 阅读全文

posted @ 2018-10-15 17:03 才小有 阅读(794) 评论(0) 推荐(0) 编辑

git从自己账号切换到公司的账号,剪项目失败

摘要: 自己学习git注册了账号,然后当用公司git去剪项目时出现报错,最后在git bash里运行一句命令就好用了:git config --system --unset credential.helper 查到这个资料前看了有需要改注册表,删认证账号等等还有其他方法,这个比较简单。 然后每次用git需要 阅读全文

posted @ 2018-10-15 16:30 才小有 阅读(905) 评论(0) 推荐(0) 编辑

2018年10月11日

求吸血鬼数(1000~10000,thinking)

摘要: 百度了下数组的排序和判断相等的util,确实很方便,学习了,在排序那后来发现有点写麻烦了也懒得改了,看起来容易明白点。 阅读全文

posted @ 2018-10-11 16:50 才小有 阅读(261) 评论(0) 推荐(0) 编辑

2018年10月8日

vue。js的时间的格式化

摘要: formatDate : function(time) { if(time!=null){ var datetime = new Date(); datetime.setTime(time); var year = datetime.getFullYear(); var month = (datet 阅读全文

posted @ 2018-10-08 16:13 才小有 阅读(3066) 评论(0) 推荐(0) 编辑

字符串数组的比较(Arrays.equals)

摘要: 阅读全文

posted @ 2018-10-08 16:01 才小有 阅读(3604) 评论(0) 推荐(0) 编辑

git commit -m 与 git commit -am 的区别

摘要: 感谢图中博主,随风yy。 阅读全文

posted @ 2018-10-08 15:54 才小有 阅读(1394) 评论(0) 推荐(0) 编辑

无法保存注册表中的新环境变量,注册表可能已损坏

摘要: 配置新环境时遇到过,原理没太明白但把杀毒软件关闭后再保存就可以通过了。 阅读全文

posted @ 2018-10-08 15:51 才小有 阅读(1989) 评论(0) 推荐(0) 编辑

判断字符串为空方法(括号为注释,StringUtils的学习)

摘要: StringUtils.isNotBlank("字符串")( Checks if a CharSequence is not empty (""), not null and not whitespace only. StringUtils.isNotBlank(null) = false Stri 阅读全文

posted @ 2018-10-08 15:47 才小有 阅读(739) 评论(0) 推荐(0) 编辑

导航