SpringCloudAlibaba 2023.0.1、SpringBoot 3.2.5 - 项目完整搭建(Nacos、OpenFeign、Gateway、Sentinel)
c)点击 “创建配置”,然后就可以把 kt-gateway 微服务中的 application.yml 文件中的所有内容都放在 nacos 上进行统一管理,随后点击发布.这里需要配置路由规则,分别将将请求通过负载均衡引入到 kt-user 和 kt-product。b)接着分别给 kt-user 和 kt-product 引入 kt-feign 模块,如下。kt-product 微服务拿到 kt-user 微服务的数据,远程调用引入成功.a)在 feign 模块的 pom.xml 中引入如下依赖。
复制链接