I'm wondering if it's possible to get access to a subdomain with Spring's @RequestMapping when the subdomain is a wildcard.
For example, I'd like to write one method that will be called when any number of subdomains are requested, and also have the ability to grab the actual subdomain that the person requested.
So if they visit sub1.example.com, it'll hit a method where I'll be able to map "sub1" to a String variable.
And if they visit sub2.example.com, it'll hit the same method as the previous example, and I'll also be able to map "sub2" to a String variable.
Is this possible?