Skip to content

Latest commit

 

History

History

lab02

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

实验二、路由过滤器实验

实验步骤

1. 在Eclipse中启动lab05的Student服务

Student Service

2. 添加路由配置项

配置文件: mobile_zuul.properties

配置项:

zuul.routing_table_string=student@http://localhost:9700&hello@http://localhost:9700

3. 在Eclipse中启动Zuul+Tomcat服务器

通过Postman校验

http://localhost:8080/s2g-zuul-mobile/healthcheck

4. 通过过滤器管理工具加载并激活路由过滤器

过滤器管理工具:

http://localhost:8080/s2g-zuul-mobile/admin/filterLoader.jsp

加载并激活:

5.校验

通过Postman校验

http://localhost:8080/s2g-zuul-mobile/api/student/echoStudentName/bobo
http://localhost:8080/s2g-zuul-mobile/api/student/getStudentDetails/bobo

通过Eclipse控制台输出查看过滤器调试日志