no String-argument constructor/factory method to deserialize from String value(‘ ‘)

错误信息:

Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `com.XXXXXX.api.user.model.vo.RoleVO` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('1398102099301875805')
 at [Source: (PushbackInputStream); line: 1, column: 41] (through reference chain: com.XXXXXX.api.user.model.vo.PostRoleVO["roleList"]->java.util.ArrayList[0])

意思是前段传递过来的数据解析不了。
通俗一点就是数据传的不对。

public class RoleVO {
    private Long id;
    /**角色名*/
    private String roleName;
    /**是否添加*/
    private boolean select;
}

前端List只传了id,
在这里插入图片描述
导致数据解析不了

你可能感兴趣的:(no String-argument constructor/factory method to deserialize from String value(‘ ‘))