使用bizlog-sdk打印日志的时候报错:org.springframework.expression.spel.SpelEvaluationException: EL1007E: Property
今天在使用bizlog-sdk打印日志的时候报错了,提示:
org.springframework.expression.spel.SpelEvaluationException: EL1007E: Property or field 'operator' cannot be found on null
使用的注解是:
@LogRecord(success = "{{#operator}} 记录资金流水 用户id={{#capitalRecord.userId}} 金额={{#capitalRecord.amount}}",type = "recordCapital",operator = "{{#operator==null ? '' : operator}}",extra = "{{#capitalRecord}}",bizNo = "{{#capitalRecord.userId}}")
发布于:2个月前 (11-27)
1 个回答
满意答案

注解里面的这里
operator = "{{#operator==null ? '' : operator}}",
第二个operator少了一个#号,配上即可。
发布于:2个月前 (11-27)
我来回答
您需要 登录 后回答此问题!