MyBatis

Failed to parse mapping resource: 'file . The contnet of elements must consist of well-formed character data or markup.

xemaker 2019. 5. 15. 09:45
자바 mybatis 프로그래밍 하다가 아래와 같은 오류를 접하였다.

Failed to parse mapping resource: 'file

뭔가 mapping 이 없다는 건데...

오류가 나서 매핑이 없다는것일 테고..

The contnet of elements must consist of well-formed character data or markup.

뭔가 mybatis xml 에서 이상한 문자가 들어간듯 보인다.

찾아보니..

<=

이부분..

< 를 mybatis에서 인식을 못하고 오류를 뱉어낸다.

그래서 CDATA로 감싸줘야 한다.



<![CDATA[ <= ]>