Change the name of artifact getting deployed in tomcat

Answered

I am using IntelliJ 2019.1 ultimate

 

I have build a simple web application of servlet and JSP which I want to deploy in my local tomcat.

 

 

Also, the project structure I have defined is like this :

 

 

But when I deploy in my local tomcat through intelliJ i get this URL:

 

http://localhost:8080/BookEample_war_exploded/

 

Instead I wanted this :

 

http://localhost:8080/BookEample

(The name I gave to the artifact)

 

How to do this ?

0
5 comments
Avatar
Permanently deleted user

Thnx for the reply.

One more doubt though. Is there a tomcat config in IntelliJ such that if I change code in my servlet code and I refresh the URL , the change gets reflected automatically  ? I mean , I don't have to stop and run the server again and again ?

 

0
Avatar
Permanently deleted user

Hi, I tried the options but I fear that none matches my requirement.

 

What I wanted is that if I change the code in my project and then I click on refresh of the chrome  browser , the changes should  reflect.

 

 

Instead the closest option I found in IntelliJ documentation is that I need to click on the refresh of the run window and configure the refresh to redeployment.

 

 

So, can this be done ?

0

On Update action: Update classes and resources.
On Frame deactivation: Update classes and resources.

Artifact must be exploded.

Try running in Debug mode.

0

Please sign in to leave a comment.