当前位置: 代码迷 >> J2EE >> 严重: Exception starting filter springSecurityFilterChain 的有关问题
  详细解决方案

严重: Exception starting filter springSecurityFilterChain 的有关问题

热度:488   发布时间:2016-04-22 02:18:07.0
严重: Exception starting filter springSecurityFilterChain 的问题
严重: Exception starting filter springSecurityFilterChain 
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined 
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387) 
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:971) 
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246) 
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) 
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168) 
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:884) 
at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:216) 
at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:145) 
at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:179)

spring Security自动生成的`` 

出错误正是因为spring Security未能自动生成`这个bean``

在application-Security.xml中`添加一个空的<http>标签`就可以让spring Security生成这样一个bean``

<http auto-config='true'>

</http>
上面是我出现的问题,然后我查出现的结果:但是我看看我自己的application-Security.xml中我:
<!-- http安全配置 -->
  <s:http auto-config="true" access-decision-manager-ref="accessDecisionManager">
  <s:form-login login-page="/login.action" default-target-url="/"
  authentication-failure-url="/login.action?error=true"/>
  <s:logout logout-success-url="/"/>
  <s:remember-me key="e37f4b31-0c45-11dd-bd0b-0800200c9a66"/>
  </s:http>
在此我是有<http>标签,但是还是上面那个错,怎么改??
希望各位帮我解答,谢谢

------解决方案--------------------
没用过帮顶
不过LZ 错误貌似是
No bean named 'springSecurityFilterChain' is defined 

springSecurityFilterChain未定义
  相关解决方案