Spring based SOA using multiple WAR on Tomcat, what is the best way to enfore URL mapping?

前端 未结 2 885
借酒劲吻你
借酒劲吻你 2021-01-16 22:58

I am in the process of migrating an old model 1 java based website, to use an under development restful-api (with the long term goal of providing a PaaS and any oth

相关标签:
2条回答
  • 2021-01-16 23:34

    You could use an Apache httpd, nginx or the like, and route URLs accordingly.

    0 讨论(0)
  • 2021-01-16 23:35

    I dont think it is possible straight away as Tomcat starts different war files in different context paths. Only thing I can think of is deploying myRest.war and mySecondWarFile.war and adding a mapping for /ThirdMethod in myRest application itself and routing the request to /mySecondWar/ThirdMethod .

    0 讨论(0)
提交回复
热议问题