@Override
    public String doGenerate(final List<String> params, final String rule, final MockRequest mockRequest) {
        
        String expression = params.get(0);
        
        CONTEXT.setVariable("req", mockRequest);
        
        Object val = PARSER.parseExpression(expression).getValue(CONTEXT);
        return JsonUtils.toJson(val);
    }
Insecure support for SPEL parsed implementations.

@see StandardEvaluationContext
@see SpelExpressionParser
shenyu-plugin/shenyu-plugin-mock/src/main/java/org/apache/shenyu/plugin/mock/generator/StandardExpressionGenerator.java