상세 컨텐츠

본문 제목

[Spring][Error] cvc-complex-type.2.3... 에러

개발/Spring

by 대충고양이짤 2015. 11. 24. 17:43

본문

문제 상황

잘 돌아가던 소스인데 dispatcherServlet.xml에서 아래와 같은 에러 발생!


cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's content type is element-only.



문제 원인

1.<?xml version="1.0" encoding="UTF-8"?>"이 누락된 경우 : 추가하면 됨!

2.이클립스 상의 문제? : 이클립스를 껏다 켜면 해결!!

3.잘 보면 어디엔가 오타 있음 (-_-)



문제 해결

내 경우에는... xml 태그 중에 "." 마침표 하나가 추가되어 있던 경우였다.

파일 뒤적거리다가 어쩌다 들어간 것으로 전혀 보이지 않았다.

몇 시간을 헤맨 끝에 발견... 하아... 마침표 삭제하니 제대로 동작한다.



참고 사이트

Springs Element 'beans' cannot have character [children], because the type's content type is element-only - stackoverflow

cvc-complex-type.2.3: Element 'bean' cannot have character [children], because the type's content type is element-only.

cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's content type is element-only.- 홀릭아이

관련글 더보기

댓글 영역