Web——Spring Reactive Web

Spring Reactive Web

        依赖说明:使用 Spring WebFlux 和 Netty 构建响应式 Web 应用程序。

         Reactive Web框架是一个包含了一套完整的服务端技术框架,这里面包括Web容器以及Web应用框架。

        Reactive Web指的是Spring WebFlux。Spring WebFlux是基于响应式流的,因此可以用来建立异步的、非阻塞的、事件驱动的服务。它采用Reactor作为首选的响应式流的实现库,不过也提供了对RxJava的支持。

        由于响应式编程的特性,Spring WebFlux和Reactor底层需要支持异步的运行环境,比如Netty和Undertow;也可以运行在支持异步I/O的Servlet 3.1的容器之上,比如Tomcat(8.0.23及以上)和Jetty(9.0.4及以上)。


参考:

Reactive Web框架 —— Spring Cloud技术初探系列

实战Spring Boot 2.0 Reactive编程系列 - WebFlux初体验 
 


POM

<!--Spring Reactive Web-->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-webflux</artifactId>
</dependency>

xxx

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
引用\[1\]中提到,之前使用的是Springweb模块,现在改用了webflux模块。这意味着在项目的pom文件中,需要将原来的spring-boot-starter-web依赖替换为spring-boot-starter-webflux依赖。同时,还需要添加spring-integration-file依赖。\[1\] 引用\[2\]中提到,Spring MVC是Spring Framework中的一个模块,叫做spring-webmvc。它并不是一个独立的项目,而是作为Spring Framework的一部分存在。\[2\] 如果你想使用Spring MVC,可以在项目的pom文件中添加spring-boot-starter-web依赖。\[2\] 引用\[3\]中提到,还可以直接在pom文件中添加spring-boot-starter-websocket依赖,以实现相同的效果。\[3\] 综上所述,如果你想使用org.springframework.web.reactive包,你需要将项目的依赖配置为使用spring-boot-starter-webflux模块,并添加相应的依赖。 #### 引用[.reference_title] - *1* *2* [Spring 5 新增全新的reactive web框架:webflux](https://blog.csdn.net/ation_work/article/details/108712925)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [springboot websocket全套模板,省去搭建的烦恼](https://blog.csdn.net/l688899886/article/details/125502088)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

十年梦归尘

愿意支持一下不(*^▽^*)

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值