[ ]
ZhouSa.com-周飒博客 权限校验器
权限控制用来对请求进行校验,对于不通过校验的请求将会被拒绝。
校验器不通过时,默认抛出内部异常码:GTW0005
#权限控制 access: values: #校验 - id: access1 name: access1 pid: type: custom available: true matcher: '${merId}->a' validatorType: switch express: true returnCode: FFFFFF returnMessage: 出错了! #ip白名单校验 - id: access2 name: access2 type: ip-white-list available: true matcher: '${merId}->a' useWhiteList: false #使用黑名单 blackList: '127.0.0.1' returnCode: FFFFFF returnMessage: 'ip不合法, 拒绝请求' available: true pipeType: direct inbound: true
还没有评论,来说两句吧...