문서 루트 요소 "mapper"은(는) DOCTYPE 루트 "null"과(와) 일치해야 합니다.


Mapper class 위에


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


있는지 체크.



----

<?xml version="1.0" encoding="UTF-8"?>

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


<mapper namespace="NAME">

<select id=" " resultType=" ">

<![CDATA[

SELECT *

FROM table

]]>

</select>


</mapper>

${pageContext.request.contextPath}


http://www.~.com/  /users/

    ↑ 이 부분을 채워줌.

프로젝트 우클릭 -> properties -> Java Build Path -> Source -> 해당 폴더의 Excluded 선택 -> Remove.(None으로 변함) -> 적용

'공부 > Java' 카테고리의 다른 글

MyBatis 문서 루트 요소 "mapper"은(는) DOCTYPE 루트 "null"과(와) 일치해야 합니다.  (0) 2018.02.05
웹 페이지 경로 가져오기  (0) 2018.02.02
JSTL 쓸 때 추가할 것  (0) 2018.01.30
spring 1  (0) 2018.01.30
DAO 틀  (0) 2018.01.23