06 2019 档案

摘要:https://www.cnblogs.com/moxiaotao/p/9777553.html 阅读全文
posted @ 2019-06-26 17:07 Andrew_F 阅读(250) 评论(0) 推荐(0)
摘要:需要注意的是,文件的命名不能带有特殊字符,否则会报文件未找到错误filenotfound,特别是采用时间date进行命名时需要注意 阅读全文
posted @ 2019-06-25 09:12 Andrew_F 阅读(479) 评论(0) 推荐(0)
摘要:我们知道可以通过ApplicationContext的getBean方法来获取Spring容器中已初始化的bean。getBean一共有以下四种方法原型: l getBean(String name) l getBean(Class<T> type) l getBean(String name,Cl 阅读全文
posted @ 2019-06-24 20:19 Andrew_F 阅读(2304) 评论(0) 推荐(0)
摘要:http://tool.oschina.net/uploads/apidocs/jquery/regexp.html https://blog.csdn.net/rentian1/article/details/81080760 https://blog.csdn.net/zengxiantao19 阅读全文
posted @ 2019-06-22 19:05 Andrew_F 阅读(659) 评论(0) 推荐(0)
摘要:excel上传与解析 https://blog.csdn.net/zsysu_it/article/details/79074067 txt解析 https://blog.csdn.net/CSDNwbdream/article/details/84429667 阅读全文
posted @ 2019-06-18 20:51 Andrew_F 阅读(811) 评论(0) 推荐(0)
摘要:1、@Data注解包含了这些注解 1. 此注解会生成equals(Object other) 和 hashCode()方法。 2. 它默认使用非静态,非瞬态的属性 3. 可通过参数exclude排除一些属性 4. 可通过参数of指定仅使用哪些属性 5. 它默认仅使用该类中定义的属性且不调用父类的方法 阅读全文
posted @ 2019-06-16 15:09 Andrew_F 阅读(13087) 评论(1) 推荐(2)
摘要:重写equals() 阅读全文
posted @ 2019-06-16 14:48 Andrew_F 阅读(241) 评论(0) 推荐(0)
摘要:原文https://www.dutycode.com/post-140.html 如何判断两个对象相等,这个问题实际上可以看做是如何对equals方法和hashcode方法的理解。 从以下几个点来理解equals和hashCode方法: 1、equals的作用及与==的区别。 2、hashcode的 阅读全文
posted @ 2019-06-16 14:36 Andrew_F 阅读(3062) 评论(0) 推荐(0)
摘要://数组排序Integer arr[] = {3,4,2};Arrays.sort(arr);//默认升序Arrays.sort(arr,Comparator.reverseOrder());//传一个逆序比较器Arrays.stream(arr).forEach(System.out::print 阅读全文
posted @ 2019-06-16 11:09 Andrew_F 阅读(343) 评论(0) 推荐(0)
摘要:如果变量flag 为空 ,那么executeUpdate 后面的参数 bookCollect.getFlag() 就会被executeUpdate()方法忽略掉,程序会报错。 解决方案:根据参数是否为空进行不同的sql拼接,然后再执行sql。感觉此处jdbc没有jpa智能。 阅读全文
posted @ 2019-06-14 18:46 Andrew_F 阅读(698) 评论(0) 推荐(0)
摘要:防火墙关闭开启centos6.X1. 永久性生效开启:chkconfig iptables on 关闭:chkconfig iptables off2. 即时生效,重启后失效开启:service iptables start关闭:service iptables stop centos7.x1、直接 阅读全文
posted @ 2019-06-10 22:12 Andrew_F 阅读(145) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/lixiaobuaa/article/details/81099838 首先,Stream流有一些特性: 关于应用在Stream流上的操作,可以分成两种:Intermediate(中间操作)和Terminal(终止操作)。中间操作的返回结果都是Stream 阅读全文
posted @ 2019-06-10 21:07 Andrew_F 阅读(871) 评论(0) 推荐(0)
摘要:原文链接: https://www.iteye.com/topic/470019 1. 协议 a. TCP/IP整体构架概述 TCP/IP协议并不完全符合OSI的七层参考模型。传统的开放式系统互连参考模型,是一种通信协议的7层抽象的参考模型,其中每一层执行某一特定任务。该模型的目的是使各种硬件在相同 阅读全文
posted @ 2019-06-10 20:12 Andrew_F 阅读(1770) 评论(0) 推荐(0)
摘要:solr高亮设置以及摘要 https://www.cnblogs.com/rainbowzc/p/3680343.html java操作solr基本方法 https://blog.csdn.net/zhangcongyi420/article/details/82559172 阅读全文
posted @ 2019-06-10 10:24 Andrew_F 阅读(108) 评论(0) 推荐(0)
摘要:参考: 支付宝支付,采用内网ip访问购买页面,但是支付宝的异步通知是需要外网才能访问的, 所以一般会做内网映射到外网,然后部署项目到外网服务器上。 但是会存在一个问题,就是从内网页面跳转到外网映射的域名地址对应的页面的时候,此时的页面session丢失了。。。。 现象:然后页面会被拦截,自动跳转到登 阅读全文
posted @ 2019-06-06 11:27 Andrew_F 阅读(738) 评论(0) 推荐(0)
摘要:遇到一个问题, 开始的url如下: http://localhost:6666/pages/wxpay.html? code_url=weixin://wxpay/biz 请求转发到谷歌浏览器打开后变成了 http://localhost:6666/pages/wxpay.html? code_ur 阅读全文
posted @ 2019-06-04 15:23 Andrew_F 阅读(9966) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/ityouknow/p/6120544.html 阅读全文
posted @ 2019-06-04 10:35 Andrew_F 阅读(82) 评论(0) 推荐(0)
摘要:上面的解决方案个人觉得时有误的,因为就算缓存了value的null值,后面的接口请求还是会判断走数据库,所以看解决方案二 解决方案二: https://blog.csdn.net/muyi_amen/article/details/80229647 参考了博客 对于数据库中不存在的key,数据库查询 阅读全文
posted @ 2019-06-03 16:39 Andrew_F 阅读(289) 评论(0) 推荐(0)
摘要:1.redis命令 2.停止 redis 命令 3.启动 redis 命令 (1). # 启动 redis-server (3). # 带配置文件启动 且指定某几个配置 配置名称前加 -- 4.redis命令行客户端 (1).发送命令 阅读全文
posted @ 2019-06-02 11:16 Andrew_F 阅读(129) 评论(0) 推荐(0)
摘要:https://baijiahao.baidu.com/s?id=1619572269435584821&wfr=spider&for=pc 缓存穿透 缓存穿透,是指查询一个数据库一定不存在的数据。正常的使用缓存流程大致是,数据查询先进行缓存查询,如果key不存在或者key已经过期,再对数据库进行查 阅读全文
posted @ 2019-06-01 17:16 Andrew_F 阅读(163) 评论(0) 推荐(0)