我尝试在Vaadin Spring Boot中使用BeanFieldGroup<Entity>
,javax.validator
和Hibernate验证程序。Vaadin&Spring Boot - 未找到ValidationMessages.properties中的替代翻译
@NotBlank(message = "{may.not.null}")
@Column(name = "name", unique = true)
private String name;
,我创建了两个文件:ValidationMessages_en.properties
:
may.not.null=not null
和ValidationMessages_fr.properties
:
may.not.null=non null
但是,即使当我改变了语言为法语,验证消息仍是ValidationMessages_en.properties
。
请问您对此有任何想法吗?