mybaits不能出现小于号

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>

  

posted @ 2016-04-19 17:28  唠叨阁大学士  阅读(190)  评论(0编辑  收藏  举报