【发布时间】:2021-11-23 14:58:16
【问题描述】:
我有一个提供 REST API 的 Spring Boot 应用程序。其中一个端点是流(服务器端事件):
@GetMapping(path = "/stream", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
public Flux<ServerSentEvent<?>> stream() {
...
}
在本地这工作正常。但是,当我在 OpenShift 集群上部署它时,我总是收到 HTTP 错误 504。其他“正常”REST 端点在操作系统上运行良好。
在 OpenShift 配置中我需要考虑什么?网络?
【问题讨论】:
标签: spring-boot spring-mvc openshift