If you don't register the localeResolver the default AcceptHeaderLocaleResolver will be used
to resolve locale by checking the "accept-language" header from the incomming HTTP request.
If there is a repated need of locale resolution add the above code else we may
get the below exception.
java.lang.UnsupportedOperationException: Cannot change HTTP accept header - use a different locale resolution strategy
Register this to support multiple languages.Property paramName is used to set the locale.