Cannot change HTTP accept header - use a different locale resolution strategy
I solved this issue by naming the method as localeResolver using the solution provided here Spring 4 i18n & l10n (Cannot change HTTP accept header)
@Bean
public LocaleResolver localeResolver()
{
final SessionLocaleResolver localeResolver = new SessionLocaleResolver();
localeResolver.setDefaultLocale(new Locale("en", "US"));
return localeResolver;
}
Change the bean id from "localResolver" to "localeResolver"