2016-09-06 80 views
0

我的应用程序在启动tomcat并且无法访问应用程序后抛出此错误。 我正在使用spring-core-4.1.9_RELEASE和Spring Security-Core-4.0.3.RELEASE。无法初始化上下文

ERROR [localhost-startStop-1] [] [] [org.springframework.web.context.ContextLoader] - <Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: The use of "filters='none'" is no longer supported. Please define a separate <http> element for the pattern you want to exclude and use the attribute "security='none'". 
+0

不是'spring'专家......然而,在配置文件中有'” filters ='none'“'条目,不再支持... – Plirkee

回答

0

此功能已弃用。比3.0更新的Spring版本将在启动时导致运行时异常。

尝试去为这个来代替:

<http pattern="/nonsecure/**" security="none"/> 

你的情况,这应该工作:

<intercept-url pattern="/login.jsp*" security="none" /> 
<intercept-url pattern="/framework/**" security="none"" /> 
<intercept-url pattern="/changePassword.htm" security="none" /> 
+0

jaind12

+0

如何在http标记中创建 – jaind12

+1

只需在每个拦截url元素中更改'security =“none”''filters =“none”' – jlumietu

相关问题