且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法从START_OBJECT令牌中反序列化int []实例

更新时间:2022-03-08 17:09:08

创建一个对象而不是int[], String来保存它们,

Create an object instead of int[], String to hold them,

public class Example {
    private int[] customUiModel;
    private String user;
}

并将控制器方法更改为

public CustomUiModel createCustomUiObject(@RequestBody @Valid Example exe) {}