What is the preferred way to specify an HTTP \"Location\" Response Header in Spring MVC 3?
As far as I can tell, Spring will only provide a \"Location\" in response
Your approach seems fine, but to keep it clean you could put the code inside a custom HandlerInterceptor that only triggers when there's an HTTP 201, for example.
HandlerInterceptor
See here for more information.