私は基本的な春のセキュリティを設定しようとしています。私は次のように私は春のセキュリティ、XMLを持っている3.1.0.RELEASE を使用しています:春のセキュリティ - Bean 'org.springframework.security.filterChains'の作成エラー
<security:http auto-config='true'>
<security:intercept-url pattern="/**" access="ROLE_USER" />
</security:http>
<security:authentication-manager>
<security:authentication-provider>
<security:user-service>
<security:user name="jimi" password="jimispassword" authorities="ROLE_USER, ROLE_ADMIN" />
<security:user name="bob" password="bobspassword" authorities="ROLE_USER" />
</security:user-service>
</security:authentication-provider>
</security:authentication-manager>
私はスタート・ページにアクセスすると、私は次の例外を取得: org.springframework.beans.factory.BeanCreationExce ptionを: 'org.springframework.security.filterChains'という名前のBeanを作成中にエラーが発生しました:Beanの初期化に失敗しました。ネストされた例外はjava.lang.NoSuchFieldError:NULLです。
誰でも助けてくれますか?
org.springframework.beans.factory.BeanCreationException: 'org.springframework.security.filterChains'という名前のBeanを作成中にエラーが発生しました:Beanの初期化に失敗しました。ネストされた例外はjava.lang.NoSuchFieldErrorのです:NULL \t org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) – jrpalla
で**************** **********ウェブXML *********** <コンテキスト-param>の contextConfigLocation /WEB-INF/applicationContext-security.xml param-値> コンテキスト-param>の springSecurityFilterChainフィルタ名> <フィルタクラス> org.springframework.web.filter.DelegatingFilterProxyフィルタCLAS S> <のfilter-mapping> springSecurityFilterChainにStackOverflowにフィルタ名> /*のurl-pattern> のfilter-mapping> –
jrpalla
ようこそ。 1つのヒント:コマンドを追加するのではなく、質問を編集することができます。これにより、読みやすくなります。 – Ralph