How to implement @RequestMapping custom properties

后端 未结 2 1199
天命终不由人
天命终不由人 2020-12-01 01:25

As an example, take subdomain mapping.

This article: Managing multiple Domain and Sub Domain on Google App Engine for Same Applicat

2条回答
  •  时光取名叫无心
    2020-12-01 02:01

    That's correct, but that would be too complicated. You'd better check the Host header, whether it contains a given subdomain.

    But you should not really need this more than once or twice, so you can also do it manually in the method body. If you really need it in many places, it would be an odd requirement.

提交回复
热议问题