springboot project -web development - international

First on error code
Here Insert Picture Description
our custom class and a LocaleResolver implement this interface.
Start request field value of l is obtained, if the request is not the parameter domain, it is the default value, otherwise, the value taken into the object and returns the locale.
Now can not realize the function,
Here Insert Picture Description
the need methods make spatially resolved injected into the container, we take to get values.
But at run time, reported the following error
java.lang.ArrayIndexOutOfBoundsException: 1

? ? ? What is a ghost? ? ? Array subscript out of bounds? ?
Very strange
I looked at the value of the request pass over the field find it to be split with an underscore, and the comma I used in the code division. It should be to the same domain request and value it, (and if wrong, please contact me modify, thank you)

Then, in the page, in English and can be switched to normal.

And then you have to configure the local configuration file
Here Insert Picture Description
Here Insert Picture Description
which is the code page

After the success of last put pictures
Here Insert Picture Description

Here Insert Picture Description

Published 37 original articles · won praise 8 · views 5288

Guess you like

Origin blog.csdn.net/weixin_42714605/article/details/104802626