0

我想在一个资源上有多个 java 拦截器。只有最后一个拦截器被调用。是否支持资源上的多个拦截器?

paths:
  /public/rt/PING:
    get:
      description: ""
      operationId: PING
      x-wso2-disable-security: true
      x-wso2-throttling-tier: 6PerMin
      x-wso2-request-interceptor: java:org.mgw.interceptor.IDSAuthInterceptor
      x-wso2-request-interceptor: java:org.mgw.interceptor.IPFilterInterceptor
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PING"
            application/xml:
              schema:
                $ref: "#/components/schemas/PING"
      security:
        - basicAuthentication: []
4

1 回答 1

2

不支持多个拦截器。可以编写第一个拦截器来调用第二个拦截器。然后不需要多个拦截器。

于 2020-04-09T06:02:47.100 回答