spring-cloud-starter-gateway踩坑

java 复制代码
1.bean of type 'org.springframework.http.codec.ServerCodecConfigurer' that could not be found.
需要将项目中用到的spring-boot-starter-web依赖给去掉
去掉以下的
<dependency>
	<groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

2.springfox.documentation.service.ApiInfo
需要将项目中用到的关于swagger的依赖去掉例如knife4j-spring-boot-starter这个依赖需要集成spring-boot-starter-web
去掉以下的
<dependency>
	<groupId>com.github.xiaoymin</groupId>
	<artifactId>knife4j-spring-boot-starter</artifactId>
</dependency>
3.建议微服务项目,不要使用那么多层级的父子工程嵌套和集成,否则很容易出现这种问题,耦合度太高了
相关推荐
lwb_01181 小时前
SpringCloud——Gateway新一代网关
spring·spring cloud·gateway
你是人间五月天1 小时前
gateway断言配置详解
gateway
weixin_387545642 小时前
深入解析 AI Gateway:新一代智能流量控制中枢
人工智能·gateway
yuluo_YX14 天前
AI Gateway 介绍
人工智能·gateway
网硕互联的小客服17 天前
502 Bad Gateway:服务器作为网关或代理时收到无效响应处理方式
运维·服务器·gateway
sevevty-seven17 天前
什么是Gateway
gateway
秋の花17 天前
【GateWay】和权限验证
java·gateway
欧先生^_^19 天前
org.springframework.cloud.gateway 组件解释
gateway
jarenyVO20 天前
Spring Cloud Gateway 全面学习指南
java·gateway
保持学习ing22 天前
微服务--Gateway网关
java·网关·微服务·gateway