spring-cloud-alibaba-dependencies依赖爆红
时间: 2023-12-06 11:04:02 浏览: 146
spring-cloud-alibaba-dependencies依赖爆红的原因是由于没有指定版本号,并且错误地将其导入为spring-cloud-alibaba-dependencies。然而,该组件是由spring-cloud管理的,这是两个不同的依赖管理器。正确导入网关的依赖应该是: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> </dependency>
为了正确管理依赖,需要使用正确的依赖管理器。应该使用以下配置来正确管理依赖: <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>${spring-cloud.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [解决导入网关gateway依赖爆红](https://blog.csdn.net/qq_45485626/article/details/110216957)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文