在使用spring-cloud-gateway的时候,有两个注意点 pom中不要有spring-boot-starter-web的依赖 client千万别写成server了 否则会报错 改成client即可