Hello;
I wrote my spring mvc application to work based on the
http://localhost:8080 is the root directory, and every thing is working fine.
So my web.xml was having the following servlet-mapping settings:
But now when I came to the deployment, I am deploying the application under the directory NEP_WF_CLIENT, so the root url will be:
http://ip_address:8080/NEP_WF_CLIENT instead of
http://ip_address:8080, so what is the best modification that I have to do it?
I know that I have to change the servlet-mapping to become:
But, that will require to do too many changes (for each controller, I have to do the change in the mapping and in the returning), and that is a big effort just because I placed the application under new directory.
What is the solution to avoid having complete changes? I am sure there is a way using prefix and suffex (adding or removing) that will resolve the problem.
Appreciate the kindly help.
Regards
Bilal