相关疑难解决方法(0)

无法解析 spring-web-reactive 的依赖项

我在 SpringBoot 应用程序中使用 Reactive 方法进行异步流处理。

我有这 6 个用于 SpringFramework 的导入

import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.RouterFunctions;
import org.springframework.web.reactive.function.server.ServerResponse;
import static org.springframework.web.reactive.function.server.RequestPredicates.*;
import static org.springframework.web.reactive.function.BodyInserters.fromObject;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
Run Code Online (Sandbox Code Playgroud)

我在我的pom.xml. 但根据 Maven 中心的说法,这些似乎最后一次使用是在 2016 年。

<!-- https://mvnrepository.com/artifact/org.springframework/spring-web-reactive -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web-reactive</artifactId>
<version>5.0.0.M2</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

这是我在 Maven 构建时的错误

[ERROR] Failed to execute goal on project SpringReactive: Could not resolve dependencies for project com.ayman:SpringReactive:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.springframework:spring-web-reactive:jar:5.0.0.M4: Failed to read artifact descriptor for org.springframework:spring-web-reactive:jar:5.0.0.M4: Could not transfer artifact org.springframework:spring-web-reactive:pom:5.0.0.M4 from/to public …
Run Code Online (Sandbox Code Playgroud)

maven spring-boot reactive spring-webflux

5
推荐指数
1
解决办法
6794
查看次数

标签 统计

maven ×1

reactive ×1

spring-boot ×1

spring-webflux ×1