简体   繁体   中英

Can Reactor 3.0.x be used with Spring4.3.x version?

I am new to reactor and trying to use Reactor 3.0.x with Spring 4.3.x version. Reactor 3.0 is the latest version available with many architectural reforms over Reactor 2.0. Could anyone please tell me if it is possible to use it with Spring 4.3.x?

Yes it is possible. Reactor only prerequisite is Java 8 and above.

Reactor initiative was merged in Spring 5 and is now used from some of the Spring's 5 core APIs. So naturally there's reactive support out-of-the box in Spring 5 like reactive support for web endpoints, reactive web client, reactive serialization and deserialization to and from JSON (Jackson) and XML (JAXB). Check out the release notes for complete info.

This does not stop you in any way to use Reactive in a Spring 4.x project. You just don't have some of those Spring's features having the reactive support, but you can freely use Java 8 streams, core Mono/Flux and async drivers to achieve reactive behavior in your project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM