Remove application name after localhost in jetty

为君一笑 提交于 2019-12-24 14:06:29

问题


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>


来源:https://stackoverflow.com/questions/11152744/remove-application-name-after-localhost-in-jetty

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!