問題:
在一個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
原因:
解決:
<!-- 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>