问题:
在一个Spring Boot项目 中集成 RabbitMQ,添加依赖时报错:
-
Dependency 'org.springframework.boot:spring-boot-starter-amqp:2.2.7.RELEASE' not found
-
Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-amqp:jar:2.2.7.RELEASE
原因:
2.2.7.RELEASE 下没有 spring-boot-starter-amqp。需要指定有amqp的springboot版本。(猜的)
解决:
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-amqp -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
<version>2.1.7.RELEASE</version>
</dependency>

本文解决了一个SpringBoot项目在集成RabbitMQ时遇到的依赖找不到的问题,详细介绍了错误的原因及如何正确配置依赖版本。
4933

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



