mybaits不能出现小于号

时间:2023-12-27 21:50:43

org.xml.sax.SAXParseException; lineNumber: 146; columnNumber: 54; The content of elements must consist of well-formed character data or markup.

配置文件如下

	<select id="selectLastestBuildByGroupDt" resultMap="BaseResultMap">
SELECT * FROM build where group_id = #{0} and dt < #{1} order by dt desc limit 1
</select>

  

修改为

	<select id="selectLastestBuildByGroupDt" resultMap="BaseResultMap">
SELECT * FROM build where group_id = #{0} and #{1} > dt order by dt desc limit 1
</select>