Botón de primavera obtenga el cuerpo de la solicitud

public ResponseEntity<?> login(HttpServletRequest request) {
    String body = request.getReader().lines().collect(Collectors.joining(System.lineSeperator()));

    ObjectMapper mapper = new JsonMapper();
    JsonNode json = mapper.readTree(body);

    String email = json.get("email").asText();
    String password = json.get("password").asText();

    ...
}
Taha Dönük