새소식

Devel/WEB

Spring Framework 프로젝트에서 cvc-complex-type-3.2.2: Attribute 'local' is not allowed to appear in element 'ref' 에러 처리 방법

  • -

eclipse 에서 스프링 프레임워크 적용해 프로젝트를 진행 시 아래와 같은 장애 발생한다.

cvc-complex-type-3.2.2: Attribute 'local' is not allowed to appear in element 'ref'


스프링 4.0 부터는 spring-beans.xsd 에서 local을 지원하지 않기에 스프링 프레임워크 4.0버젼 이하의 프로젝트 일 경우 아래와 같이 bean 설정을 수정한다.

<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.