【发布时间】:2012-07-03 00:56:47
【问题描述】:
我正在尝试为我的 GAE 应用程序实现 Spring 安全性,但出现此错误:
No bean named 'springSecurityFilterChain' is defined
我将此配置添加到我的 web.xml:
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
并且在应用上下文中:
<!-- Configure security -->
<security:http auto-config="true">
<security:intercept-url pattern="/**" access="ROLE_USER" />
</security:http>
<security:authentication-manager alias="authenticationManager">
<security:authentication-provider>
<security:user-service>
<security:user name="jimi" password="jimi" authorities="ROLE_USER, ROLE_ADMIN" />
<security:user name="bob" password="bob" authorities="ROLE_USER" />
</security:user-service>
</security:authentication-provider>
</security:authentication-manager>
什么可能导致错误?
【问题讨论】:
标签: spring google-app-engine spring-security