0
我知道我可以做一個自定義的驗證消息在玩模型層@必註解,就像這樣:遊戲框架的1.2.x @MinSize定製驗證消息
@Required(message = "customError.required")
public String name;
但我試圖做的同爲@MinSize註釋...
@MinSize(8)(message = "customError.passwordSoShort")
public String password;
...並收到此編譯錯誤:
The file /app/models/User.java could not be compiled. Error raised is : Syntax error on token ")", ? expected
@MinSize(8)↓(message = "customError.passwordSoShort")
public String password;