摘要: 官方文档地址:http://projects.spring.io/spring-session/http://docs.spring.io/spring-session/docs/current/reference/html5/guides/httpsession.html Spring Sessi 阅读全文
posted @ 2017-12-20 16:45 门罗的魔术师 阅读(2620) 评论(0) 推荐(0) 编辑
摘要: oauth应该属于security的一部分。关于oauth的的相关知识可以查看阮一峰的文章:http://www.ruanyifeng.com/blog/2014/05/oauth_2_0.html 一、目标 现在很多系统都支持第三方账号密码等登陆我们自己的系统,例如:我们经常会看到,一些系统使用微 阅读全文
posted @ 2017-12-20 11:39 门罗的魔术师 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1.在web工程的基础上,在pom.xml中添加: 2.在启动类(任意新建一个空类都可以)上面添加注解:@EnableRedisHttpSession 3.application.properties:配置redis 至此配置完成! 访问:https://localhost:8080/test 后, 阅读全文
posted @ 2017-12-20 10:36 门罗的魔术师 阅读(196) 评论(0) 推荐(0) 编辑