Have you noticed ? Everytime we create a project in Intellij IDEA, project name is prefixed in url like
http://localhost:8080/demo_war_exploded while building a JSP web project. It was very annoying and its need to be removed even while working locally.
I did tinkering around internet and found a lots of examples in esclipse but was not able to find for intellij IDEA while Intellij is the widely used IDE today.
So, Today we are going to see how to remove project name from url in jsp project. Let’s get started
Run/Debug configurations and click Edit Configuration.
http://localhost:8080/demo_project_name similar to the image below.
Now, go to deployments and also replace
/demo_project_name with just
"/". Lastly apply and save.
Stop the server and re-run to check if the issue is solved. If you have any problem contact us via contact form.