Selecting Language Using Query
Learn how to make the language selection dynamic by using a query.
We'll cover the following
Adding query
The default browser language support is nice, but sometimes we want to give the user more control to select the required language.
We can add a query parameter that will set the language by creating a class that implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
with a LocaleChangeInterceptor
:
Get hands-on with 1400+ tech skills courses.