Сериализатор не найден для класса org.hibernate.proxy.pojo.bytebuddy.bytebuddyinterceptorJAVA

Программисты JAVA общаются здесь
Anonymous
Сериализатор не найден для класса org.hibernate.proxy.pojo.bytebuddy.bytebuddyinterceptor

Сообщение Anonymous »

Когда я пытаюсь перейти к конечной точке, я получаю следующую ошибку < /p>

Код: Выделить всё

Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)
< /code>
Я проверил все свои модели, и все атрибуты имеют getters и setters. Итак, в чем проблема?Product
Модель:

Код: Выделить всё

@Entity
public class Product {
private int id;
private String name;
private String photo;
private double price;
private int quantity;
private Double rating;
private Provider provider;
private String description;
private List categories = new ArrayList();
private List
 photos = new ArrayList();

// Getters & Setters
}
< /code>
PagedResponse
класс:

Код: Выделить всё

public class PagedResponse {

private List content;
private int page;
private int size;
private long totalElements;
private int totalPages;
private boolean last;

// Getters & Setters
}
< /code>
RestResponse
класс:

Код: Выделить всё

public class RestResponse {
private String status;
private int code;
private String message;
private T result;

// Getters & Setters
}
< /code>
In my controller i'm returning [b]ResponseEntity>
[/b]


Подробнее здесь: https://stackoverflow.com/questions/526 ... uddyinterc

Вернуться в «JAVA»