source is null for getproperty 问题原因:在mybatis进行数据获取时,报错,参数类型是Map,在sql中没有判断Map对象不为空,然后再取map中的参数,如下: select * from t_table where is_del= 0 <if test="paraMap!=null"> <if test="paraMap.ruleName!=null and paraMap.ruleName.toString()!=' ' "> and rule_name=#{ ruleName} </if> </if>