In Spring 2.5 you can tell in your dispatcher servlet configuration to scan for @Controller annotations. That way you don’t configure URL mappings explicity in the dispacher servlet as you used to do before since the annotations are added to the controller classes themselves. It’s less XML and I really like it. However I did not know how to add the locale interceptor in this case, because there was no urlMapping bean defined. I found out online you just need to add the following configuration to the dispatcher servlet.
<property name=”interceptors” ref=”localeChangeInterceptor” />
Hope this helps you too.