java - Size cannot resloved to be a type -


i got error when try validate form..this corresponding class file

    public class myuser {      @notnull      @size(min=1,max=20)     private string name;      @min(0)     @max(120)      private int age;      public myuser(string name, int age) {         this.name = name;         this.age = age;     }      public myuser() {         name = "";         age = 0;     }  } 

here added corresponding javax.validation jar file in class path still got error.can give me suggestions.

you have import javax.validation.constraints.* or javax.validation.constraints.size


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -