使用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}}")
1 个回答
满意答案
霸占丶迩德
霸占丶迩德
答案被隐藏
查看该答案需要支付 2 积分
登录账号
发布于:1年前 (2022-11-27) IP属地:四川省
我来回答