Locale
Learn Locale (Request Handling, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Locale is the language and region (for example en_US or fr_FR ) that Spring MVC works out for each request, so messages, dates and numbers can be shown in the user language. Controller argument : declare a java.util.Locale parameter and Spring fills it with the current request locale. Default source : the Accept-Language header sent by the browser is used unless another LocaleResolver is configured.