The use of "filters='none'" is no longer supported

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'".

上边是错误信息,按照信息中的提示建立一个独立的<http>(以前的版本是在<intercept-url>中)然后在其中定义pattern并且security="none"就可以了。

<http request-matcher="regex" pattern="(/login){1}/?\S*$" security="none" />


你可能感兴趣的:(spring-security)