首页 > 解决方案 > 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 repo 中发布。我怎么解决这个问题?

谢谢,

标签: springspring-bootmavenrepositoryspring-webflux

解决方案


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


推荐阅读