初始化参数

对于在connector及channel中通过拦截器开发的应用,由于尚未进入识别器环节,通常有需要根据相应需求内置上下文变量的需求,可以通过initParam插件进行参数的初始化,此处的参数目前会设置到请求上下文中,而不是报文中。 示例如下,可以使用本地识别器进行参数的选择,遵循handler和controller的通用配置

initParam:
  localRecognizers:

- id: recognizer1
  keyMap: {uuid2: '${uuid}'}
  type: uuid
    values:
- id: initParam1
  type: default
  keyMap: {remoteIp: '${remoteIp}', bbb: '${bbb}', ccc: ccc, uuidddd: '${uuid2}'}
    available: true
    pipeType: direct
    inbound: true
Copyright © 民生科技有限公司 2019 all right reserved,powered by Gitbook联系方式: wanglihang@mskj.com
修订时间: 2019-08-02 16:19:33

results matching ""

    No results matching ""