XMLでSpring Securityを設定しようとしましたが、動作しないようです。ここで私はこれまで持っているものです:私が見つけたXMLでSpring Security 3の設定
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd">
[...]
<security:http auto-config="true">
<security:intercept-url pattern="/**" access="ROLE_USER" />
<security:http-basic />
</security:http>
<security:authentication-manager>
<security:authentication-provider>
[???] <!-- What goes here? -->
</security:authentication-provider>
</security:authentication-manager>
</beans>
すべてのチュートリアルでは、私はプレースホルダで<user-service>
を入れたいように見えるが、NetBeansはオートコンプリートその要素にしません。その要素に似ているのはany-user-service
ですが、わかっている限り、「抽象的な」要素です。
ユーザーとパスワードのメモリ内リストを構成するだけです。 Spring Securityバージョン3ではどうしたらいいですか?
私の質問で説明したように、 'user-service'はその位置で有効な要素ではないようです。私はこれがおそらくSpring Securityの比較的最近の変更だと思っています。 – damd