@RequestMapping custom properties
As an example, take subdomain mapping.
This article: http://techsravi.blogspot.com/2011/0...ub-domain.html
recommends to resolve subdomain on Filter.
If we'd like to create custom @RequestMapping property, such as subdomain, eg. to create mapping like this:
Code:
@RequestMapping(value = "/some/action", subdomain = "www")
public String handlerFunction(){
return "view/id";
}
We would have to override @RequestMapping @interface definition and override RequestMappingHandlerMapping protected methods, with our own implementation (
https://jira.springsource.org/browse/SPR-7812).
Is this the way we should walk?