我的应用程序在启动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 :(得分: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" />