spring boot international information

1. The first change character encoding properties file, or garbled, the following settings

 

 

 2.

Classpath create i18n directory to store configuration files
 

 

 Click on the red box to edit multiple profiles 

 

such as:

 

 

3. Add the path configuration 

Note that if a configuration error occurs 

 

springboot2. 0 internationalization page ?? XXX_zh_CN ??

This error 

 

 

The basic path for the i18n folder login 

Be careful not to use or else the page will appear i18n.login 

  The above error

 

 

Guess you like

Origin www.cnblogs.com/guangzhou11/p/12451809.html