javax.validation.constraints.NotEmpty.message={0} must not be empty
javax.validation.constraints.Size.message=size must be between {min} and {max},please.
value=value1111
@Setter
@Getter
public class TestForm {
@NotEmpty
@Size(min=5, max=100)
String value;
}
Press the button without inserting anything.
Error messages is no problem.
size must be between 5 and 100,please.
value1111 must not be empty
Error message is...
size must be between 5 and 100,please.
{0} must not be empty
I want to set the value in the part of {0}. Do you need to do something?