орг.springframework.http.converter.httpmessageconversionexception:
Ошибка определения типа: [простой тип, класс
java.io.io.bufferedinusterpream]; Вложенное исключение -
com.fasterxml.jackson.databind.exc.invaliddefinitionexception: no
serializer, найденный для класса java.io.bufferedinputstream и no
heperties, обнаруженные для создания Beanseeriater (чтобы избежать исключения,
serializationfeat.fail_empe_empemer (чтобы избежать исключения,
serialiaz /> Цепочка:
ru.fabit.visor.ui.web.http.model.response.complexes.mobilecomplex.devicesumaryresponse®"route"цин /> Метод отдыха: < /p>
Код: Выделить всё
@GetMapping(DEVICE_ID_PATH)
public ResponseEntity getDeviceSummary(@PathVariable(name = "id") Long id) {
log.debug("REST request to get summary for complex with id = {}", id);
var deviceSummary = mobileComplexService.getSummary(id);
return ResponseEntity.ok().body(deviceSummaryMapper.toResponse(deviceSummary));
}
< /code>
Ответ Entity: < /p>
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DeviceSummaryResponse {
@ApiModelProperty(value = "Конфигурация устройства", required = true)
private ConfigResponse config;
@ApiModelProperty(value = "GPX файл с маршрутом устройства", required = true)
private Resource route;
}
Подробнее здесь: https://stackoverflow.com/questions/758 ... e-definiti