zoukankan      html  css  js  c++  java
  • [mybatis] expression: in.showLayers==true [org.apache.ibatis.ognl.ParseException: Encountered “ “in“

    异常

    nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'in.showLayerstrue’. Cause: org.apache.ibatis.ognl.ExpressionSyntaxException: Malformed OGNL expression: in.showLayerstrue [org.apache.ibatis.ognl.ParseException: Encountered " “in” "in “” at line 1, column 1.

    “,” …
    “=” …
    “?” …
    “||” …
    “or” …
    “&&” …
    “and” …
    “|” …
    “bor” …
    “^” …
    “xor” …
    “&” …
    “band” …
    “==” …
    “eq” …
    “!=” …
    “neq” …
    “<” …
    “lt” …
    “>” …
    “gt” …
    “<=” …
    “lte” …
    “>=” …
    “gte” …
    “in” …
    “not” …
    “<<” …
    “shl” …
    “>>” …
    “shr” …
    “>>>” …
    “ushr” …
    “+” …
    “-” …
    “*” …
    “/” …
    “%” …
    “instanceof” …
    “.” …
    “(” …
    “[” …
    <DYNAMIC_SUBSCRIPT> …
    ]

    解决

    由错误提示可知,是ognl表达式

    <if test="in.showShelfs == true">
    
    • 1

    出现错误,仔细检查后发现参数in和ognl表达式保留字冲突,修改参数后问题解决。

    <if test="inDto.showShelfs == true">
  • 相关阅读:
    模拟http请求 带 chunked解析办法一
    DLL入口函数
    修复吾爱OD数据窗口双击不出现偏移问题
    PE导入表分析
    持仓盈亏公式
    hadoop工作相关
    zookeeper常用命令
    git使用命令行上传文件
    redis中各种数据类型对应的jedis操作命令
    volatile关键字比较好的解释
  • 原文地址:https://www.cnblogs.com/FZlion/p/14150291.html
Copyright © 2011-2022 走看看