ObjectMapper can't deserialize without default constructor after upgrade to Spring Boot 2

前端 未结 7 1585
予麋鹿
予麋鹿 2020-12-24 01:42

I have following DTOs:

@Value
public class PracticeResults {
    @NotNull
    Map wordAnswers;
}

@Value
public class ProfileMetaDto {

         


        
7条回答
  •  时光说笑
    2020-12-24 02:03

    I had this issue and the solution that worked for me what creating a default constructor without fields and the problem disappeared.

提交回复
热议问题