• 请不要在回答技术问题时复制粘贴 AI 生成的内容
burtbai
V2EX  ›  程序员

请教大家一个关于 mybatis OGNL 的问题

  •  
  •   burtbai · Sep 4, 2018 · 2155 views
    This topic created in 2811 days ago, the information mentioned may be changed or developed.

    数据库有一个字段是‘ eq ’

    这样写 <if test="record.eq != null"> 会报 org.apache.ibatis.ognl.ParseException: Encountered " "eq" "eq "" at line 1</if>

    不修改字段名,有解决办法吗?

    1 replies    2018-09-07 20:16:16 +08:00
    burtbai
        1
    burtbai  
    OP
       Sep 7, 2018
    `<if test="record.getEq() != null">`
    这样解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3054 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 224ms · UTC 09:01 · PVG 17:01 · LAX 02:01 · JFK 05:01
    ♥ Do have faith in what you're doing.