No validator could be found for type: java.lang.Integer.错误

来源:互联网 发布:c语言或符号 编辑:程序博客网 时间:2024/05/01 11:58

@NotNull

@Length(max=16)

    @Column(length=16, nullable=false)
    private Integer status = STATUS_ENABLED;

因为integer 类型没有这种校验类型,所以不对

把@notnull 和@length都去掉。

0 0