- 首先确定项目架构是由平台提供的之前oracle版本的框架或mysql版的框架。
- 在以上框架中做如下配置:
在resources目录中找到spring-shiro.xml并打开,
a.新增如下bean:
<bean id="singleLoginFilter" class="com.jy.modules.platform.sysauth.service.shiro.SingleLoginFilter">
<property name="sessionManager" ref="defaultWebSessionManager" />
</bean>b.找到id为shiroFilter的bean,在其中<property name="filters">中,给<map>新增一个<entry>,如下:
<entry key="kickout" value-ref="singleLoginFilter"/>
在resources目录中找到auth-shiro.propertis并打开,
在前面添加如下内容
重新启动应用,并测试。
同一账号在不同浏览器不能同时登录配置
猜你喜欢
转载自www.cnblogs.com/jwdd/p/10901849.html
今日推荐
周排行