Код: Выделить всё
jakarta.ws.rs.POSTКод: Выделить всё
"String value length (20051112) exceeds the maximum allowed (20000000, from `StreamReadConstraints.getMaxStringLength()`)"
< /code>
Я понимаю, что эта ошибка, вероятно, поступает из библиотеки Джексона.@POST
@Path("/employee/details")
@Consumes({APPLICATION_JSON, APPLICATION_JACKSON_YAML})
@Produces(APPLICATION_JSON)
public Response storeEmployeeDetails(@Parameter Employee employee) throws EmployeeException {
var employeeState = employeeService.storeEmployee(employee);
return Response.status(CREATED).entity(new StoreEmployeeResponse(employeeState)).build();
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... stful-apis