title: spring boot Locale Resolver default spanish
body: <p>I can not find a way to change the default locale from Locale.US to Spanish. It is not in the list and I can not find anything that explains how.</p>
  
  <blockquote>
    <p>@Configuration
    public class SpringMvcConfiguration extends WebMvcConfigurerAdapter {</p>
  </blockquote>
  
  <pre><code>@Bean
  public LocaleResolver localeResolver(){
      SessionLocaleResolver sessionLocaleResolver = new SessionLocaleResolver();
      sessionLocaleResolver.setDefaultLocale(Locale.US);
  
      return sessionLocaleResolver;
  
  }
  
  @Bean
  LocaleChangeInterceptor localeChangeInterceptor(){
      LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
      localeChangeInterceptor.setParamName("lang");
      return localeChangeInterceptor;
  }
  
  @Override
  public void addInterceptors(InterceptorRegistry interceptorRegistry){
      interceptorRegistry.addInterceptor(localeChangeInterceptor());
  }
  </code></pre>
  
  <p>}</p>