上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页
摘要: https://blog.csdn.net/andyzhaojianhui/article/details/80776712 阅读全文
posted @ 2019-06-21 13:41 y-xs 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 方法一:通过Calendar类得日期比较,在这需要考虑闰年和平年,也要考虑跨年份 方法二:转化为毫秒数,再除以一天得毫秒数 阅读全文
posted @ 2019-06-19 15:49 y-xs 阅读(53964) 评论(2) 推荐(5) 编辑
摘要: 原因: Ajax下载文件的这种方式本来就是禁止的。出于安全因素的考虑,javascript是不能够保存文件到本地的, 所以ajax考虑到了这点,只是接受json,text,html,xml格式的返回值,二进制的返回格式就会抛出这个异常。 因为response原因,一般请求浏览器是会处理服务器输出的r 阅读全文
posted @ 2019-06-14 17:03 y-xs 阅读(4002) 评论(1) 推荐(1) 编辑
摘要: 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 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 增加年: 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 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 解决方法: HttpGet httpGet = new HttpGet(" http://XXXX.XXX"); httpGet.getParams().setParameter("http.protocol.allow-circular-redirects", true); 阅读全文
posted @ 2019-05-21 16:45 y-xs 阅读(1057) 评论(0) 推荐(0) 编辑
摘要: 这是url出现了特殊字符,需要将特殊字符进行替换 阅读全文
posted @ 2019-05-21 16:42 y-xs 阅读(10626) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页