상세 컨텐츠

본문 제목

[ERROR] Mybatis mapper 설정 시 - The content of element type "mapper" must match "EMPTY"

개발/Database

by 대충고양이짤 2019. 7. 25. 14:34

본문

문제 상황

- 개발 환경 : Spring Boot + Mybatis 

mapper 설정 중 "The content of element type "mapper" must match "EMPTY"." 에러 발생

 

해결

dtd 문서에 mapper element가 없어서 발생하는 문제. mapper 문서 윗단에 <!DOCTYPE>을 제대로 설정해준다.

<!DOCTYPE mapper
  PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

관련글 더보기

댓글 영역