11 Star 26 Fork 9

無色眼镜 / dawdler-series

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.49 KB
一键复制 编辑 原始数据 按行查看 历史

dawdler-client-plug-session

模块介绍

高性能分布式session的实现模块.

1. pom中引入依赖

 <groupId>dawdler</groupId>
 <artifactId>dawdler-client-plug-session</artifactId>

2. identityConfig.properties文件说明

用于配置分布式会话的核心参数

cookieName=_dawdler_key #sessionId存放的cookie名称
tokenName=token #header或http请求参数中的sessionId名称,默认为token.
supportHead=false #是否支持http header中传入tokenName定义的sessionId.
supportParam=false #是否支持http 请求参数中传入tokenName定义的sessionId.
domain= #cookie的域,一般无须填写默认即可
path=/ #cookie中的path 默认为/
secure=false #是否是https 如果是https此参数需要设置为true
maxInactiveInterval=1800 #session过期时间 单位为秒 默认为1800秒
maxSize=165525 #最大支持多少用户在线,在线是指登录使用session存储
defense=true #是否开启session防御模式(防止恶意创建session)
ipMaxInactiveInterval=1800 #统计IP的过期时间 单位为秒 默认为1800秒
ipMaxSize=165525  #最大支持统计ip个数
ipLimit=8 #最大一个ip可以创建的session个数

3. session-redis.properties文件说明

分布式session基于redis实现,redis客户端配置参考dawdler-redis-plug

4. 统一配置中心与多环境支持

参考统一配置中心与多环境支持

Java
1
https://gitee.com/srchen1987/dawdler-series.git
git@gitee.com:srchen1987/dawdler-series.git
srchen1987
dawdler-series
dawdler-series
master

搜索帮助