|
@@ -33,7 +33,7 @@ public class SseController {
|
|
@Autowired
|
|
@Autowired
|
|
private ThreadPoolExecutor poolExecutor;
|
|
private ThreadPoolExecutor poolExecutor;
|
|
|
|
|
|
- @GetMapping(path = "/sse", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
|
|
|
|
|
|
+ @GetMapping(path = "/sse", produces = MediaType.TEXT_EVENT_STREAM_VALUE, headers = "Cache-Control=no-cache")
|
|
@NoAPIResponse
|
|
@NoAPIResponse
|
|
public SseEmitter handleSse(@RequestParam("token") String token) throws IOException {
|
|
public SseEmitter handleSse(@RequestParam("token") String token) throws IOException {
|
|
SseEmitter sseEmitter = new SseEmitter(300 * 1000L); // 设置超时时间
|
|
SseEmitter sseEmitter = new SseEmitter(300 * 1000L); // 设置超时时间
|