摘要: Zuul的上传 1、构建一个上传类 import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import or 阅读全文
posted @ 2020-04-06 22:58 愚蠢的猴子 阅读(815) 评论(0) 推荐(0) 编辑
摘要: Zuul 过滤器 zuul 有四种过滤器类型,分别是: 1、Pre:过滤器在请求被路由之前调用。我们可利用这种过滤器实现身份验证、在集群中选择请求的微服务、记录调试信息等; 2、Routing:过滤器将请求路由到微服务。这种过滤器用于构建发送给微服务的请求,并使用Apache HttpClient或 阅读全文
posted @ 2020-04-06 16:38 愚蠢的猴子 阅读(2069) 评论(0) 推荐(0) 编辑