我有一个Spring应用服务器,它在终端用户连接时将SSE无限地发送给他们。我想实现某种id验证,它依赖于从第三方服务请求id,返回Mono<Boolean>。如果上面的Mono包含false,我想用一个错误关闭连接。如何正确地将错误发送给用户,然后关闭连接? @GetMapping("/sse")
public Flux<Server
{"name":"INVALID_REQUEST","message":"Request is not well-formed, syntactically incorrect, or violatesfield":"/purchase_units/@reference_id=='default'/amount/value","value":"","l
每当我试图通过rest调用从前端向后端发送一些东西时,我都会得到一个"Requiredrequest body is missing“。w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Requiredrequest body is missing: public void nl.han.