NodeletException: Error parsing XML. Error parsing XPath '/sqlMap/update'. NoSuchElementException

前端之家收集整理的这篇文章主要介绍了NodeletException: Error parsing XML. Error parsing XPath '/sqlMap/update'. NoSuchElementException前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/update'.
Cause: java.util.NoSuchElementException
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:62)
at com.ibatis.sqlmap.engine.builder.xml.sqlMapParser.parse(sqlMapParser.java:44)
at com.ibatis.sqlmap.engine.builder.xml.sqlMapConfigParser$10.process(sqlMapConfigParser.java:257)
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:121)
... 96 more

<update id="updateTableById" parameterClass="ParamClass">
	UPDATE  table1 set updated_time=now(),send_time = #sendTime#
	where id =#id#
	and  <![CDATA[send_time < #{sendTime}]]>
</update>

提示update结点有错误修改后是:(把{}去掉)

<update id="updateTableById" parameterClass="ParamClass">
	UPDATE  table1 set updated_time=now(),send_time = #sendTime#
	where id =#id#
	and  <![CDATA[send_time < #sendTime]]>
</update>

猜你在找的XML相关文章