Is there any possible way that we can deploy two war file(same project) with same name in tomcat.
I have app which has the URL app/customer/123
which return me the customer details, now I want to give the version like app/v1/customer/123
should give me the customer details. This is typically the version maintenance.
There are other way for version maintenance which are covered in below post
Best way to maintain api version
but again I have to write lot of code. I was looking for something i can provide immediate solution(later on i can follow the best practice and do the changes)
I was thinking if i could deploy two war file with same name by just changing the <url-pattern>/v1/*<url-pattern>
so customer can access the both api by just adding the version in the URL(This will prevent changing the whole URL)
I tried this also but this did not work How to deploy external webapp in tomcat?
Is there any way i can achieve this?