例如,对于@NotBlank
注释,我检索了NotBlank.className.fieldName
消息代码,但我需要使用"className.fieldName.canNotBeBlank"
覆盖此代码:
@Entity
public class Customer {
..... minimized .....
@NotNull
@NotBlank(message = "customer.name.canNotBeBlanc")
@Size.List({
@Size(min = 2, message = "customer.name.minimalLengthIs2"),
@Size(max = 50, message = "customer.name.maxlLengthIs50")
})
private String name;
..... minimized .....
}