SpringCloud
IT媛小燕成长记
这个作者很懒,什么都没留下…
展开
-
ZuulFilter总结
zuulFilter使用总结 pre:可以在请求被路由之前调用 route:在路由请求时候被调用 post:在route和error过滤器之后被调用 error:处理请求时发生错误时被调用 一、拦截request请求,对请求进行修改(pre/route) 1.修改url地址 RequestContext ctx = RequestContext.getCurrentCon...原创 2018-08-03 10:41:38 · 710 阅读 · 0 评论 -
spring cloud config 读取配置中心
spring cloud 读取配置中心 一、配置中心服务: 1、pom文件添加依赖: org.springframework.cloud spring-cloud-config-server 2、yml配置文件 spring: application: name: config-center cloud: config: server: git: ...原创 2018-10-08 17:54:04 · 942 阅读 · 0 评论