gateway不能引入web依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
删除这个依赖就行了
本文介绍了在Spring Gateway项目中遇到的问题,即当引入web依赖时导致的冲突。解决方案是移除spring-boot-starter-web依赖,以保持Gateway的正确运行。这确保了微服务网关的轻量级特性不受影响。
gateway不能引入web依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
删除这个依赖就行了
1550
3483
1235
1万+
4656
9494

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