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.
You don't need to change anything. Deployment location changes context path, but 'url-pattern' is independent and is appended after context path. So, if you deploy your app under ROOT directory, you can hit endpoint with url-pattern = '/' at http://ip_address:8080/, if you deploy your app under NEP_WF_CLIENT directory, you can hit endpoint with url-pattern = '/' at http://ip_address:8080/NEP_WF_CLIENT/. I speak from my experience with Tomcat, not sure if that generally applies to all web servers.
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad: