i want creates multiple sub domains using java/spring in cloud server. needs api create sub domains?
`eg: domain: www.example.com
sub domain: www.my1.example.com sub domain: www.my2.example.com sub domain: www.my3.example.com`
it common mistake think subdomains in spring mvc project. subdomains common thing of servers such apache.
if want create "subdomains" programatically need map url using filters. create custom filter parses whole url , extracts called "subdomain".
if have my1.example.com in filter may extract my1 part, , send requestmapping such /{myxxx}/index if don't want show in url /{myxxx}/index may use rewrite url achieving that.
Comments
Post a Comment