2016-09-06 78 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

相關問題