1.在
<if test="role.flightNo.tagList0.size()>0 and role.flightNo.tagList0[0]=='='">
中报异常Cause: java.lang.NumberFormatException: For input string: “=”
造成这个原因是将’='误认为char类型,而不是String类型
解决方案:
1.改为:test=“role.flightNo.tagList0[0]==’=’.toString()”
2.原因是OGNL语法的问题:
这里 ‘=’ 将被认为是 char 类型,但是希望"=" 将被作为 String类型。
所以我们可以用转义:<if test="role.flightNo.tagList0[0]== "="">
3.或者将<if test="index == '='"> 改为 <if test='index == "="'>
。