首页 > 解决方案 > 如何监控流程完成并将状态推送到 UI?

问题描述

假设我已将 10k 条记录从 DB 读入我的 ArrayList。我想转换记录并将完成进度状态推送到 React UI;说间隔 10%。

如何将通知从后端代码(在我的情况下为 Spring Boot)推送到前端?

谢谢!

标签: reactjsspring-boot

解决方案


In order to send information to the frontend you could use WebSockets. Take a look at this guide on how to do it with SpringBoot: https://spring.io/guides/gs/messaging-stomp-websocket/.


推荐阅读