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

young·2021년 8월 20일
0

개발입문일지

목록 보기
7/7

문제👀

xml파일에서 부등호를 tag로 인식해서 생기는 오류였다.

해결👀

쿼리에 사용된 부등호를 문자열으로 인식시키기 위해

<![CDATA[내용]]>

으로 감싸주니 해결됐다.

<!-- 페이징처리 -->
<select id="getListPaging" resultMap="resultMap">
	select * from (
    			select /*+INDEX_DESC(table pkname) */ rownum as rn, table.* 
                	from table 
                    	where <![CDATA[rownum <= #{pageNum} * #{amount}]]>) 
    	where rn > (#{pageNum} -1) * #{amount}
</select>

0개의 댓글