Session管理
Session管理,采用Spring Session。
本文档采用redis进行session存储
安装部署
安装redis
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# yum --enablerepo=remi,remi-test install redis
# service redis start
参考资料:
1. https://gist.github.com/nghuuphuoc/7801123
2. https://gnuhpc.gitbooks.io/redis-all-about/content/Operation/redis-cli.html
3. http://development.wombatsecurity.com/development/2016/11/18/spring-sessions-with-redis/
4. https://my.oschina.net/piaofudeyu/blog/552402