05 2024 档案
摘要:1、通过过滤器在网关内获取用户信息(网关内传递) 通过下面的代码,就可以实现网关转发请求到微服务的时候携带用户信息 package com.hmall.gateway.filters; import com.hmall.common.exception.UnauthorizedException;
阅读全文
摘要:1、所需依赖 <!--common--> <dependency> <groupId>com.heima</groupId> <artifactId>hm-common</artifactId> <version>1.0.0</version> </dependency> <!--网关--> <de
阅读全文