Problem with Spring properties MVC 4

1

Good error happens in the second message of the properties file the first message ok when I try to put the second message in the file this error happens

  

Caused by: javax.servlet.jsp.JspTagException: No message found under   code 'campo.add' for locale 'pt_br'.

file message.properties

campo.obrigatorio= Este campo é Obrigatório
campo.add= Add
campo.update= Editar

@Bean
public static MessageSource messageSource() {
ReloadableResourceBundleMessageSource messageSource = new ReloadableResourceBundleMessageSource();
messageSource.setBasename("classpath:mensagem");
messageSource.setDefaultEncoding("UTF-8");
return messageSource;
}
    
asked by anonymous 05.01.2016 / 18:19

0 answers