【文件属性】:
文件名称:thymeleafsandbox-sse-webflux:使用Spring 5.0,Spring WebFlux和Spring Boot 2.0的SSE(服务器发送事件)示例应用程序编辑添加主题
文件大小:439KB
文件格式:ZIP
更新时间:2021-05-22 10:17:16
Java
Thymeleaf沙箱:SSE(服务器发送的事件)
这是一个沙箱应用程序,仅在内部用于开发。
内容
该沙箱存储库包含一个示例应用程序,旨在使用Spring 5 WebFlux测试Thymeleaf用于呈现服务器发送事件(SSE)的情况。
建造
要构建此项目,您将需要Maven3。您可以在以下位置获得它:
http://maven.apache.org
干净的编译:
mvn -U clean compile
运行应用程序(基于Spring Boot,使用netty作为Web服务器):
mvn spring-boot:run
启动后,该应用程序应该位于以下位置:
http://localhost:8080
执行中
此应用程序提供了几个URL:
索引页:
/ :HTML接口通过EventSource JavaScript对象请求SSE事件
/events :返回正在使用的事
【文件预览】:
thymeleafsandbox-sse-webflux-3.0-spring5
----.gitignore(58B)
----.mvn()
--------wrapper()
----src()
--------main()
----mvnw(7KB)
----CONTRIBUTING.markdown(5KB)
----NOTICE.txt(626B)
----LICENSE.txt(11KB)
----pom.xml(5KB)
----mvnw.cmd(5KB)
----README.markdown(955B)
----.gitattributes(847B)
网友评论
相关文章
- Spring-Boot-WebFlux-服务器发送事件示例:Spring Boot WebFlux +服务器发送事件示例
- spring-boot2-sample-webflux:使用Webflux的简单示例Spring Boot 2应用程序
- spring-boot-webflux-reactive-mongo:使用Spring Boot 2,Spring Data Mongo-Db Reactive,Spring Boot Webflux,Spring Security Webflux,功能路由创建的示例项目
- demo-sse-spring-boot:服务器发送事件的Spring Boot(1.3.0.M1)演示