spring 网络流量和 spring 网络流量之间的明显区别
Clear difference between spring web and spring web flux
我知道这个问题已经被问了很多,但我找不到明确的答案来回答我的问题。
我看到 spring web 和 spring web flux 之间的主要区别是 Mono 和 Flux 以及 ReactiveRepository 的使用。我的问题是:有什么区别? (语法差异除外)。我假设背景中的一切都不同,但我们看到这些差异了吗?我们可以用 flux 做一些我们不能用 web mvc 做的东西吗?
我使用 flux(使用 mono 和 flux)制作了一个简单的 spring 引导应用程序,但只是语法发生了变化,对我来说,我没有看到任何差异。
谢谢:)
Spring Reactive Gives the overview of WebFlux and Webflux is for asynchronous reactive programming & implements the Reactive Stream specification webflux 用于 NIO 用例。
我知道这个问题已经被问了很多,但我找不到明确的答案来回答我的问题。
我看到 spring web 和 spring web flux 之间的主要区别是 Mono 和 Flux 以及 ReactiveRepository 的使用。我的问题是:有什么区别? (语法差异除外)。我假设背景中的一切都不同,但我们看到这些差异了吗?我们可以用 flux 做一些我们不能用 web mvc 做的东西吗?
我使用 flux(使用 mono 和 flux)制作了一个简单的 spring 引导应用程序,但只是语法发生了变化,对我来说,我没有看到任何差异。
谢谢:)
Spring Reactive Gives the overview of WebFlux and Webflux is for asynchronous reactive programming & implements the Reactive Stream specification webflux 用于 NIO 用例。