오류 및 해결/Spring
Spring Security XML 설정 오류(servlet-context.xml)
minNa2
2023. 7. 24. 13:09
오류
Spring Security 초기 설정 중 아래와 같은 오류 발생
Multiple annotations found at this line:
- Configuration problem: You cannot use a spring-security-2.0.xsd or spring-security-3.0.xsd or spring-security-3.1.xsd schema or spring-security-3.2.xsd schema or spring-security-4.0.xsd schema with Spring Security 4.2. Please update
your schema declarations to the 4.2 schema. Offending resource: file [C:/dev/workspace/workspace_spring/chapter04_MVC/src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml]
- You cannot use a spring-security-2.0.xsd or spring-security-3.0.xsd or spring-security-3.1.xsd schema or spring-security-3.2.xsd schema or spring-security-4.0.xsd schema with Spring Security 4.2. Please update your schema declarations
to the 4.2 schema.
해결
변경 전
xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-5.0.xsd
변경 후
xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd
반응형