# 使用 Spring Boot 中遇到的各种问题

# SpringBoot 使用过程中出现 Type definition error: [simple type, class Xxx nested exception is ... jackson...

起因:由于添加一个 DTO 之后,接口接受前端返回的数据出现反序列化问题

解决方式:

DTO 类上面加
@AllArgsConstructor
@NoArgsConstructor

image-20230523090713108