我希望隐式int列出@ApiModelProperty
我使用spring-fox swagger2生成API规范,我们希望在ApiModel中支持int和List作为属性日期。
@Data
@Immutable
@ApiModel(value = "Model", description = "Model")
public class CriteriaFields {
@ApiModelProperty(required=false,value="date",example="XXX")
private List<Integer> date;
}
现在仅支持列表,如果我将int设置为宽大的页面,则表明不能将int隐式添加到列表中。
Cannot deserialize instance of `java.util.ArrayList` out of VALUE_NUMBER_INT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.util.ArrayList` out of VALUE_NUMBER_INT token\n at [Source: (PushbackInputStream); line: 3, column: 15] (through reference chain: