ocean-usergw-service/usergw-service/src/main/resources/test-gateway3.yaml

33 lines
843 B
YAML

default-filters:
- AddResponseHeader=X-Response-Default-Foo, Test-Default-Bar
restful: # filters 必须 有predicates uri只是预期到达的地址
routes:
- id: redirect_to
uri: http://localhost:8888/http/xixi
order: 11
predicates:
- Path=http://localhost:8888/http/xixi
filters:
- RedirectTo=302, http://localhost:8888/http/hello
dubbo:
routes:
- id: test
application: dubbo-exchange
# methods: # 如果没填就从 request拿 意味着所有接口都可以使用
# - name: Say
# param-types:
# - java.lang.String
# - name: Hello
connections: 4
group: test
registry: zookeeper://127.0.0.1:2181
interface: ocean.demo.api.IExchange
version: 1.0.0
predicates:
- Path=/dubbo/hello