`
wanglong0537
  • 浏览: 12206 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
阅读更多
认证并发线程的控制: 控制web应用接受认证的线程数量,避免攻击。 在web.xml加入: <listener><listener-class>org.springframework.security.ui.session.HttpSessionEventPublisher</listener-class></listener> 在spring设置中加入: <bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager"><property name="providers"><!-- your providers go here --></property><property name="sessionController"><ref bean="concurrentSessionController"></ref></property></bean><bean id="concurrentSessionController" class="org.springframework.security.concurrent.ConcurrentSessionControllerImpl"><property name="maximumSessions"><value>1</value></property><property name="sessionRegistry"><ref local="sessionRegistry"></ref></property></bean><bean id="sessionRegistry" class="org.springframework.security.concurrent.SessionRegistryImpl"></bean>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics