上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 77 下一页

spring boot 及 redis 实现分布式session 实践笔记

摘要: (0)背景Spring-Session实现Session共享入门教程Spring-Session使用的场景?HttpSession是通过Servlet容器进行创建和管理的,在单机环境中。通过Http请求创建的Session信息是存储在Web服务器内存中,如Tomcat... 阅读全文
posted @ 2017-09-27 09:52 silyvin 阅读(793) 评论(0) 推荐(0)

ajax 跨域 session 及 spring boot分布式session

摘要: 未跨域时Ajax请求不同的action时,session保持不变跨域Ajax异步请求时,每次请求都是一个新的session一些帖子供参考http://www.cnblogs.com/interdrp/p/4056525.html http://blog.csdn.net/qq_29845761/ar... 阅读全文
posted @ 2017-09-26 13:28 silyvin 阅读(658) 评论(0) 推荐(0)

spring boot redis 接入笔记

摘要: 1. 安装redisredis官网地址:http://www.redis.io/ 最新版本:2.8.3 在Linux下安装Redis非常简单,具体步骤如下(官网有说明): 1、下载源码,解压缩后编译源码。$ wget http://downlo... 阅读全文
posted @ 2017-09-22 16:37 silyvin 阅读(332) 评论(0) 推荐(0)

两个变量交换值

摘要: 第一种方法,大家会借助第三个变量来实现:如:tmp=A;A=B;B=tmp;这种方法需要借助第三变量来实现; 第二种方法是利用加减法实现两个变量的交换,如:A=A+B;B=A-B;A=A-B;但是 如果 A+B 超出 A的返回 ,就会出错!极为不推荐 此方法 第三种... 阅读全文
posted @ 2017-09-22 13:09 silyvin 阅读(200) 评论(0) 推荐(0)

maven设置打jar包并引入依赖包

摘要: http://www.cnblogs.com/sheeva/p/5032706.html--------------------------------------------------------方法一:将jar包和项目打在一起------------------... 阅读全文
posted @ 2017-09-22 09:37 silyvin 阅读(897) 评论(0) 推荐(0)

ArrayList源码简单剖析 及与linkedlist vector 区别

摘要: Arraylist 主要构造函数 public ArrayList(int initialCapacity) { if (initialCapacity > 0) { this.elementData = new Object... 阅读全文
posted @ 2017-09-21 11:22 silyvin 阅读(155) 评论(0) 推荐(0)

application/json 与 application/x-www-form-urlencoded的简单比较

摘要: 在用HttpUrlConnection请求极光推送restful时(http://docs.jiguang.cn/jpush/server/old/rest_api_v2_push/), 涉及到一个参数序列化问题,对方要求 HTTP Post 的Content-Type 需采用 applicatio 阅读全文
posted @ 2017-09-18 15:45 silyvin 阅读(485) 评论(0) 推荐(0)

liunx 防火墙操作

摘要: service iptables status可以查看到iptables服务的当前状态。https://zhidao.baidu.com/question/249392467.html但是即使服务运行了,防火墙也不一定起作用,你还得看防火墙规则的设置 iptables... 阅读全文
posted @ 2017-09-14 11:26 silyvin 阅读(207) 评论(0) 推荐(0)

git 学习记录

摘要: (一)多人协作模式https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013760174128707b935b0be6fc4fc6ace66c4f15... 阅读全文
posted @ 2017-08-30 17:08 silyvin 阅读(180) 评论(0) 推荐(0)

Log 学习记录

摘要: (一)主要是 log4j 中 myappender 过滤http://blog.csdn.net/wangchsh2008/article/details/8812857之前曾写过一篇帖子,是log4j按包路径输出到不同文件。log4j按级别输出到不同文件,也类似。先... 阅读全文
posted @ 2017-08-29 08:43 silyvin 阅读(367) 评论(0) 推荐(0)
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 77 下一页