2

我在xml中有一个bean,如下所示

<bean id="theCustomAuthenticationProvider" class="test.custom.CustomAuthenticationProvider">
<security:custom-authentication-provider />

一个。我可以知道security:custom-authentication-provider 是什么意思,当我像上面那样把它放在我的bean 中时?

。我需要创建吗

<bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager"> ref to theCustomAuthenticationProvider 

在 xml 中?

。如果 b。答案是肯定的,或者,我可以在标签内使用 CustomAuthenticationProvider 的 ref 吗?

4

1 回答 1

3

这个想法是标记一个bean:

<security:custom-authentication-provider />

将 bean 注册AuthenicationManager为由 spring security 提供的身份验证提供程序。你不需要b

于 2009-05-29T07:52:52.237 回答