버전 4 (anonymous에 의해 수정됨, 13 년전)
--
[[인메모리 첫번째]]
<authenticatiion-manager alias="authenticationManager">

	<authentication-provider>

		<user-service>

			<user authorities="ROLE_USER" name="guest" password="guest"/>

		</user-service>

	</authentication-provider>

</authentication-manager>

[[인메모리 두번째]]

<authenticatiion-manager alias="authenticationManager">

	<authentication-provider user-srevice-ref="userService"/>

</authentication-manager>

<user-service id="userService">

	<user name="guest" password="guest" authorities="ROLL_USER"/>

</user-service>


---------------------------------------------------------------------------------------

<authenticatiion-manager alias="authenticationManager">

	<authentication-provider>

		<jdbc-user-service data-source-ref="dataSource"/>

	</authentication-provider>

</authentication-manager>


<jdbc:embedded-database id="dataSource" type="HSQL">

	<jdbc:script location="classpath:security-schema.sql"/>
        <jdbc:script location="classpath:test-data.sql"/>

</jdbc:embedded-database>

insert into users(username,password,enabled) values('guest','guest',true);
insert into authorities(username,authority) values('guest','ROLE_USER');