示例 Spring Cloud Gateway 应用程序
Sample that shows a few different ways to route and showcases some filters.
Run DemogatewayApplication
…In one terminal, run websocket server:
wscat --listen 9000In another, run a client, connecting through gateway:
wscat --connect ws://localhost:8080/echotype away in either server and client, messages will be passed appropriately.
Make sure redis is running on localhost:6379 (using brew or apt or docker).
Then run DemogatewayApplicationTests. It should pass which means one of the calls received a 429 TO_MANY_REQUESTS HTTP status.
暂无开放 Issues,或尚未同步最近议题。