DB/MyBATIS
Caused by: org.xml.sax.SAXParseException: The content of element type .....
yeon.Biju
2019. 3. 29. 18:09
Caused by: org.xml.sax.SAXParseException: The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*|sql*|insert*|update*|delete*|select*)+".
ibatis 를 mybatis로 옮기는 중에 오류 발생
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap" />
이 구문이 ibatis 에선 sqlmap 파일에 있었는데
mybatis 에서는 mapper파일에 들어있으면 안되는데 들어있어서 발생
<typeAlias .... />를 사용할려면 config파일에 등록을 해준다.