Mybatis 中 if test字符串比较问题

来源:互联网 发布:剑灵捏脸数据fate 编辑:程序博客网 时间:2024/05/17 23:23
<if test="'0'==levelCode">
</if>

这样会报错NumberFormatException


如果换成
<if test="'0'.toString()==levelCode">
</if>

就ok了


转载自:http://blog.csdn.net/wwc8511/article/details/12173315

0 0
原创粉丝点击