会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
杨-先森
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
23
下一页
2019年6月21日
intellij 全局搜索文件失效 ctrl+shift+n
摘要: https://blog.csdn.net/andyzhaojianhui/article/details/80776712
阅读全文
posted @ 2019-06-21 13:41 y-xs
阅读(546)
评论(0)
推荐(0)
2019年6月20日
js日期格式化
摘要: Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.ge
阅读全文
posted @ 2019-06-20 14:00 y-xs
阅读(338)
评论(0)
推荐(0)
2019年6月19日
Spring一些注解
摘要: spring @component的作用详细介绍 1、@controller 控制器(注入服务) 2、@service 服务(注入dao) 3、@repository dao(实现dao访问) 4、@component (把普通pojo实例化到spring容器中,相当于配置文件中的<bean id=
阅读全文
posted @ 2019-06-19 16:47 y-xs
阅读(198)
评论(0)
推荐(0)
java中Integer面试的坑
摘要: class Test{ public static void main(String[] args){ //当值在[-128,127]中,不创建新的Integer Integer f1 = 100,f2 = 100,f3 = 150, f4 = 150; System.out.println(f1 == f...
阅读全文
posted @ 2019-06-19 16:34 y-xs
阅读(638)
评论(0)
推荐(0)
java判断两个时间相差得天数
摘要: 方法一:通过Calendar类得日期比较,在这需要考虑闰年和平年,也要考虑跨年份 方法二:转化为毫秒数,再除以一天得毫秒数
阅读全文
posted @ 2019-06-19 15:49 y-xs
阅读(54015)
评论(2)
推荐(5)
2019年6月14日
ajax请求无法下载文件的原因
摘要: 原因: Ajax下载文件的这种方式本来就是禁止的。出于安全因素的考虑,javascript是不能够保存文件到本地的, 所以ajax考虑到了这点,只是接受json,text,html,xml格式的返回值,二进制的返回格式就会抛出这个异常。 因为response原因,一般请求浏览器是会处理服务器输出的r
阅读全文
posted @ 2019-06-14 17:03 y-xs
阅读(4041)
评论(1)
推荐(1)
2019年6月12日
hash冲突的解决方法
摘要: 1. 开放定址法 2.再哈希法 3.链地址法 4.建立公共溢出区 参考:https://blog.csdn.net/PORSCHE_GT3RS/article/details/79445707 https://zhuanlan.zhihu.com/p/29520044 https://blog.cs
阅读全文
posted @ 2019-06-12 14:01 y-xs
阅读(202)
评论(0)
推荐(0)
2019年5月22日
增加日期时间
摘要: 增加年: Date addTime(int year) { Calendar cd = new GregorianCalendar(); cd.setTime(new Date()); cd.add(GregorianCalendar.YEAR, year); return cd.getTime(); } 增加月: Date addTime(int month)...
阅读全文
posted @ 2019-05-22 11:23 y-xs
阅读(449)
评论(0)
推荐(0)
2019年5月21日
HttpClient的CircularRedirectException解决办法
摘要: 解决方法: HttpGet httpGet = new HttpGet(" http://XXXX.XXX"); httpGet.getParams().setParameter("http.protocol.allow-circular-redirects", true);
阅读全文
posted @ 2019-05-21 16:45 y-xs
阅读(1086)
评论(0)
推荐(0)
java.net.URISyntaxException: Illegal character in query at index 147
摘要: 这是url出现了特殊字符,需要将特殊字符进行替换
阅读全文
posted @ 2019-05-21 16:42 y-xs
阅读(10685)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
23
下一页
公告