Run configuration - application context
已回答
I'm trying to figure out how to change application context/url for my web app.
How do I change it from http://localhost:8080/JavaEE_war_exploded/ to http://localhost:8080/hello/
There is no option for application context in the run configuration as shown here https://felipealvesgnu.wordpress.com/2016/11/23/intellij-application-context-configuration/
请先登录再写评论。
There is a setting for context, you may need to scroll down the dialog:
There it is! I don't have that option though, running Intellij on Ubuntu 16.04.
You can't specify it for EAR artifacts, only for WAR.
For EAR it's defined using the app server deployment descriptor, see https://docs.jboss.org/jbossas/guides/webguide/r2/en/html/ch06.html for JBoss.
My bad, I had completely forgotten about that. Thank you!! :)