The orders of bean validation default parameters?
问题 I am currently trying to provide a custom validation message using bean validation. Currently using spring mvc 3.1.1 + apache bean validation. In my bean, i specify : @Size(min=1, max=50) private String title; And in my messages.properties : Size.addForm.title=The title must not be empty and must not exceed {1} characters. From experiment, i found out that : {0} refers to 'title' {1} refers to the max, which is 50 {2} refers to the min, which is 1 and it'll be displayed as The title must not