2016-09-06 6 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' 전문가 ... 그러나,이 구성 파일에' " 더 이상 지원되지 않는 항목 ... – Plirkee

답변

0

이 기능은 더 이상 사용되지 않습니다. 3.0보다 새로운 스프링 버전은 시작할 때 런타임 예외가 발생합니다.

보십시오이 대신 갈합니다 : 귀하의 경우

<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

각 'intercept-url' 요소에서'security = "none"에 대해'filters = "none"'만 변경하십시오. – jlumietu

관련 문제