MyBatis中小于号<>编译疏失
MyBatis中小于号编译出错select idgetTotalValues resultTypeint![CDATA[select COUNT(DISTINC
MyBatis中小于号<>编译出错
<select id="getTotalValues" resultType="int"> <![CDATA[ select COUNT(DISTINCT value) from tableName d where crtime < CURDATE() ]]> </select>
之前一直编译不过去,提示在<小于号的位置有错误,google一下原来大家都有这个错误,因为是在xml文件里面写的sql,需要用<![CDATA[]]>括起来