我希望您能使用Spring表单注释来测试用户输入是否为字母数字或整数。
i have also tried this code.
@NotEmpty
@NumberFormat(style = Style.NUMBER)
@Length(min =11,max =11)
@Column(name="abc")
private String xyz;