mybatis报错

报错信息:Could not find value method on SQL annotation.  Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 50; 元素内容必须由格式正确的字符数据或标记组成。

检查sql语句发现没有任何问题,原因mybatis把他认为是一个xml格式。xml中不能包含<(小于号) ,换成

 between   and 就可以解决这个问题。

if you want to go fast,go alone,if you want to go far,go together
原文地址:https://www.cnblogs.com/yinyl/p/14313442.html