document.write("");

Postman SSE接口 测试

 

image

image

Headers 如默认示例,没有任何变动

image

 接口完整返回:

image

 

后端Post接口,需注意添加 

@PostMapping(produces = MediaType.TEXT_EVENT_STREAM_VALUE)

image

接口返回类型为

SseEmitter

  

 

 

 

posted @ 2025-12-03 10:24  人间春风意  阅读(34)  评论(0)    收藏  举报