Change the ACEGI_SECURITY_CONTEXT session key to SPRING_SECURITY_CONTEXT
Change the ACEGI_SECURITY_LAST_USERNAME session key to SPRING_SECURITY_LAST_USERNAME
Change the following taglib definition:
<%@ taglib prefix="authz" uri="http://acegisecurity.org/authz"%>
to:
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
Change JSP auth:authorize tag references to security:authorize.
Change any "auth:authentication operation='xxxx'" tag references to "security:authentication property='principal.xxxx'"
Change the ACEGI_SECURITY_LAST_USERNAME session key to SPRING_SECURITY_LAST_USERNAME
Change the following taglib definition:
<%@ taglib prefix="authz" uri="http://acegisecurity.org/authz"%>
to:
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
Change JSP auth:authorize tag references to security:authorize.
Change any "auth:authentication operation='xxxx'" tag references to "security:authentication property='principal.xxxx'"
本文介绍如何将基于Acegi Security的应用迁移到Spring Security。包括更改session key、更新标签库定义及转换JSP标签等内容。
4092

被折叠的 条评论
为什么被折叠?



