在使用spring-cloud-gateway的时候,有两个注意点
- pom中不要有spring-boot-starter-web的依赖

- client千万别写成server了

否则会报错

改成client即可
本文介绍了在使用 Spring Cloud Gateway 过程中常见的两个配置错误:避免在 pom.xml 中引入 spring-boot-starter-web 依赖,以及确保正确配置 client 而不是 server,以避免运行时出现错误。
在使用spring-cloud-gateway的时候,有两个注意点



1166
406
2655
1509

被折叠的 条评论
为什么被折叠?