配置文件: mobile_zuul.properties
配置项:
zuul.routing_table_string=student@http://localhost:9700&hello@http://localhost:9700
通过Postman校验
http://localhost:8080/s2g-zuul-mobile/healthcheck
过滤器管理工具:
http://localhost:8080/s2g-zuul-mobile/admin/filterLoader.jsp
加载并激活:
- 测试用选路过滤器TestRoute.groovy
- 路由执行过滤器ExecuteRoute.groovy
通过Postman校验
http://localhost:8080/s2g-zuul-mobile/api/student/echoStudentName/bobo
http://localhost:8080/s2g-zuul-mobile/api/student/getStudentDetails/bobo
通过Eclipse控制台输出查看过滤器调试日志