How to change the Tomcat url to /

Answered

When I create a Java EE Web Application, The default url is http://localhost:8080/{ProjectName}_war_exploded/

How can I change it to http://localhost:8080/

0
6 comments

Hello,

Do you need to change default project template or artifact deployment location?

 

0
Avatar
Permanently deleted user

Hello, I want to change the web url, the default url is like this "http://localhost:8080/testTomcat_war_exploded/". it contains project name.I want to change it deafault ""http://localhost:8080/" which doesn't contain project name. And, how to change artifact deployment location?

0

You could change "Application context" on "Deployment" tabof run configuration from "/testTomcat_war_exploded" to "/", so artifact will be deployed to "http://localhost:8080/"

2
Avatar
Permanently deleted user

Thank you.

0
Avatar
Permanently deleted user

I tried the proposed approach. However, everytime i create a new project i have to go to Application context and change it again. So how let intellij do that automatically everytime i create a new project

0

"Application context" is per-artifact setting, so it should be configured for every artifact individually. 

Vote and share your opinion in this YouTrack item, where a similar problem is discussed: https://youtrack.jetbrains.com/issue/IDEA-222248

1

Please sign in to leave a comment.