MyBatis if test 字符串判斷問題

在使用 MyBatis if 進行條件判斷時,一直不正確,以下:web <if test="status!= null and status=='OK'"> result = #{result ,jdbcType=VARCHAR} </if> MyBatis是使用的OGNL表達式來進行解析的,改爲app <if test='status!= null and status== "OK" '>
相關文章
相關標籤/搜索