Don't access the defaultLocale field directly, but use the getter method, so it can be overridden.
The sibling class org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver already uses the getter.
Don't access the defaultLocale field directly, but use the getter method, so it can be overridden.
The sibling class org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver already uses the getter.