03 springspring 2021-11-19 spel mp类型解析#in[‘wid’]+’‘+#basicInfo[‘bosId’]+’‘+#basicInfo[‘merchantId’]+’‘+#basicInfo[‘productId’]+’‘+#basicInfo[‘productInstanceId’]+’‘+#basicInfo[‘tcode’] +’‘+#extParams[‘source’] 123456789101112131415161718 StandardEvaluationContext context = new StandardEvaluationContext(); String[] parameterNames = VARIABLE_NAME_DISCOVERER.getParameterNames(method); context.setVariable("method", method); context.setVariable("methodName", method.getName()); context.addPropertyAccessor(new MapAccessor()); for (int i = 0; i < args.length; i++) { context.setVariable(parameterNames[i], args[i]); } ExpressionParser parser = new SpelExpressionParser(); String result = spelParser.parseExpression(key).getValue(context, String.class)