[英]Spring Security - Java Based Configuration AuthenticationManager and Http403ForbiddenEntryPoint
我已经将Spring Security更新到3.2,从而可以使用基于Java的注释来配置项目,而无需使用XML。
我几乎配置了所有东西,但是有两个我没有(也不知道如何)配置的问题。
Http403ForbiddenEntryPoint
? 如何配置自定义 AuthenticationManager
?
<security:http entry-point-ref="entryPoint" > ... </security:http> <bean id="entryPoint" class="org.springframework.security.web.authentication.Http403ForbiddenEntryPoint" /> <security:authentication-manager alias="myAuthenticationManagerImpl" />
这是我的自定义身份验证类:
@Service ("authenticationManager")
public class AuthenticationManagerImpl implements AuthenticationManager {
...
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.