When using internationalization, there is no message found under code ' login.error ' for locale ' en '. This error.
Think that this should be a problem to identify the internationalization of the file, check the configuration file, the path of internationalization configuration, and so on. Also looked at the name also did not write wrong, but this error still exists.
After searching the internet for answers, most of them say that the configuration path does not add classpath reasons, after the test is still not resolved.
After trying a lot of methods, I looked closely to see if I had found the key login.error. Think can be able to be the file is wrong. The internationalization file for another project that can be run properly is copied; There is no error.
Finally, the differences between the two files are compared.
Different as shown in the figure. Later modify the encoding method to UTF-8, and then you can.
Perhaps some people will ask, the coding way so obvious can not see it.
In my tool, the encoding method is utf-8 by default,
I just chose other and then saved, encoding automatically programmed Unicode. The specific reason is unclear.