mybatis org.apache.ibatis.ognl.TokenMgrError: Lexical error at line 1, column 24. Encountered: "\u30
来源:互联网 发布:手机淘宝所在地怎么改 编辑:程序博客网 时间:2024/06/05 20:20
<select id="selectEmpList" resultType="emp" >
select * from (select e.*,ROWNUM rn from (select * from emp
<where>
<if test="empCondition.empno !=null">
and empno = #{empCondition.empno}
</if>
<if test="empCondition.ename !=null">
and ename = #{empCondition.ename}
</if>
<if test="empCondition.deptno !=null">
and deptno = #{empCondition.deptno}
</if>
</where>
order by sal ) e
)
where rn>=#{rowStart} and rn <![CDATA[<]]>= #{rowEnd}
select * from (select e.*,ROWNUM rn from (select * from emp
<where>
<if test="empCondition.empno !=null">
and empno = #{empCondition.empno}
</if>
<if test="empCondition.ename !=null">
and ename = #{empCondition.ename}
</if>
<if test="empCondition.deptno !=null">
and deptno = #{empCondition.deptno}
</if>
</where>
order by sal ) e
)
where rn>=#{rowStart} and rn <![CDATA[<]]>= #{rowEnd}
</select>
错误原因:由于中文的标点符号“。”在mybatis配置文件中和英文“.”是一样的,所以容易看不出错误,这里将中文"empConditon.empname"改成英文半角"empConditon.empname"
0 0
- mybatis org.apache.ibatis.ognl.TokenMgrError: Lexical error at line 1, column 24. Encountered: "\u30
- Lexical error at line 15, column 17. Encountered: "\uff0c" (65292), after : ""
- org.apache.lucene.queryParser.ParseException: Encountered "<EOF>" at line 1, column 0.
- org.apache.lucene.queryParser.ParseException: Encountered "<EOF>" at line 1, column 0.
- org.apache.lucene.queryparser.classic.ParseException: Encountered "<EOF>" at line 1, column 0.
- org.apache.el.parser.ParseException: Encountered " ":" ": "" at line 1, column 1
- jboss启动报org.jboss.security.auth.login.ParseException: Encountered "<?xml" at line 1, column 1. 异常
- ognl.ExpressionSyntaxException: Malformed OGNL expression: <?xml version [ognl.ParseException: Encountered " <" at line 1, colum
- org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 0: unknown encoding
- org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 0: unknown encoding
- uic: Error in line 1, column 38 : Encountered incorrectly encoded
- android-org.jdom2.input.JDOMParseException: Error on line 1: At line 1, column 1971: not well-formed
- 解析xml时,报错:org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 75:not well-formed
- 解析XML时,org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 449: not well-forme
- Parse Fatal Error at line 1 column 1: Content is not allowed in prolog. org.xml.sax.SAXParseExceptio
- Jforum中搜索错误:jforum Cannot parse '': Encountered "EOF" at line 1, column 0.
- Error evaluating expression 'objectProperty.userId!=0'. Cause: org.apache.ibatis.ognl.NoSuchProperty
- org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in
- R语言数据可视化:ggplot2中的qplot()函数
- 关闭回显
- 多线程中的单例模式
- Fabric架构解析
- Problem G: 字符串类(II)
- mybatis org.apache.ibatis.ognl.TokenMgrError: Lexical error at line 1, column 24. Encountered: "\u30
- Chapter 6 Interfaces and Inner Classes.md
- Flume-将数据写入动态分区表
- C++模板实现的队列多线程安全
- MATLAB简单矩阵的输入方法
- Ecshop模板开发(十八):侧边栏目分类列表
- ZOJ3212-K-Nice
- 飞行姿态计算
- 杭电oj 1005 Number Sequence