/sso-single

一个简单的登录Demo

Primary LanguageJavaScript

sso-single

本程序演示了单实例登录的情况

简介

当网站很小很小时,只需要一个Tomcat,这时将用户的登录信息保存到Session中即可,本程序就演示了这种情况。

当网站变大时,就可以了解多实例登录和单点登录了。

相关代码

单实例登录代码:https://github.com/xanderma/sso-single

多实例登录代码:https://github.com/xanderma/sso-mult

单点登录代码:https://github.com/xanderma/sso

启动程序

直接运行 SsoSingleApplication.java 文件即可。

然后访问:http://localhost:8080 输入任意用户名即可登录