I build application using maven and run it using jetty plugin. Lets name of application be AAA, then, how can i configure jetty for entering on my application by URL http://localhost:PORT/
instead of http://localhost:PORT/AAA/
I saw answers when using Tomcat, but i am intresting in jetty.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You could set <contextPath>
to /
in the plugin configuration as documented here or here (based on the version of the plugin used.
<contextPath>/</contextPath>