- 编写资源文件,Acegi的DaoAuthenticationProvider使用了如下的资源Key






- 定义资源Bean






- 将资源Bean注入到DaoAuthenticationProvider
1
<bean id="daoAuthenticationProvider"
2
class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
3
<property name="userDetailsService">
4
<ref local="inMemoryDaoImpl" />
5
</property>
6
<property name="messageSource">
7
<ref bean="messageSource" />
8
</property>
9
</bean>

2

3

4

5

6

7

8

9
