【发布时间】:2011-05-13 09:31:27
【问题描述】:
我在web.xml中添加以下内容以支持spring security 3.spring ioc + struts2不起作用,当struts2指向一个bean时,系统无法搜索applicationContext.xml中的bean定义,它只是显示我的类未定义
<context-param>
<!-- Defines definition file for security setting. -->
<param-name>contextConfigLocation</param-name>
<param-value>classpath:app-security.xml</param-value>
</context-param>
<!-- Bootstraps the Spring root web application context before servlet initialization -->
<!-- The following code defines filter for Spring Security -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<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>
请帮忙!提前致谢!
【问题讨论】:
-
您需要提供更多详细信息。
标签: spring struts2 spring-security web.xml