Mybatis 异常: The content of elements must consist of well-formed character data or markup

Posted 星星满天

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mybatis 异常: The content of elements must consist of well-formed character data or markup相关的知识,希望对你有一定的参考价值。

原因很简单:在ibatis的配置文件中不能出现小于号(>)

    <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
        delete from
        t_match
        where CREATE_TIME<=#{createTime,jdbcType=BIGINT} (修改为大于号)

  where #{createTime,jdbcType=BIGINT} >= CREATE_TIME
    </delete>

以上是关于Mybatis 异常: The content of elements must consist of well-formed character data or markup的主要内容,如果未能解决你的问题,请参考以下文章