spring框架和webflux版本不兼容

问题描述

我有一个旧版本的spring-framework项目。弹簧框架版本为3.1.1.RELEASE。我需要导入webflux,但是版本不兼容,所以如果我在pom.xml中添加这些代码

<dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webflux</artifactId>
            <version>${spring.version}</version>
        </dependency> 

不起作用,因为spring-webflux:3.1.1.RELEASE未在maven存储库中发布。我该如何解决这个问题?

谢谢

解决方法

它是在Spring 5中添加的。恐怕您需要更新到Spring 5。