No message found under code ' login.error ' for locale ' en '. The solution

Source: Internet
Author: User
Tags locale

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.