认证并发线程的控制:
控制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>
分享到:
相关推荐
糖果 2024年1月6日
小K 2024年1月6日
笔记 2023年1月6日.note
差分约束系统 2024年1月6日
1月6日、13日托福写作.pdf
1月6日、13日托福口语.pdf
2021年最新版Makefile
2021年护士资格证考试报名时间、条件、流程及入口【1月6日-1月21日】.docx
2020年2月17日-3月1日中国外卖商家单量超疫前(2020年1月6日-19日)TOP10城市.xls
行业数据-2020年2月17日-3月1日中国外卖商家单量超疫前(2020年1月6日-19日)TOP10城市.rar
2021年2021年1月6日教师资格证面试题目汇总
2018年1月6日教师资格证面试题目部分汇总全科.doc
2020年1月6日浙江省普通高中学业水平数学试题及答案.doc
2021年执业医师资格证报名时间、报名条件及报名入口【1月6日-21日】.docx
2021年执业医师资历证报名时间、报名条件及报名入口【1月6日-21日】.docx
2016年初级会计师报考要求以及基本常识每日一讲(1月6日).doc
房地产周报:央行1月6日全面降准0.5%,释放长期资金约8000亿元
房地产周报:央行1月6日全面降准0.5%,释放长期资金约8000亿元.pdf
环保工程及服务行业周报:高度重视黄河生态流域治理,1月6日起降准0.5个百分点.pdf
房地产行业周报:一二手房成交同比上升,央行宣布1月6日起降准0.5个百分点