在码头上的本地主机后删除应用程序名称 [英] Remove application name after localhost in jetty
本文介绍了在码头上的本地主机后删除应用程序名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Maven构建应用程序,并使用码头插件运行它.让应用程序名称为AAA,那么,如何配置码头以通过URL http://localhost:PORT/
而不是http://localhost:PORT/AAA/
进入我的应用程序
使用Tomcat时我看到了答案,但是我很喜欢码头.
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.
推荐答案
您可以按照此处(基于所用插件的版本.
You could set <contextPath>
to /
in the plugin configuration as documented here or here (based on the version of the plugin used.
<contextPath>/</contextPath>
这篇关于在码头上的本地主机后删除应用程序名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文