Java EE Glassfish虚拟服务器DNS更改http://192.168.16.144:8080/MyAppCorporation-战争

Java EE Glassfish虚拟服务器DNS更改http://192.168.16.144:8080/MyAppCorporation-战争,java,jakarta-ee,glassfish,glassfish-3,Java,Jakarta Ee,Glassfish,Glassfish 3,嘿,伙计们, 我正在使用GlassFishV3在JavaEE中开发一个应用程序。应用程序的URL类似于localhost:8080/MyAppCorporation war/,不太直观。我想知道,当用户尝试访问应用程序时,是否可以将其更改为更有用、更容易记住的内容。例如,类似myeasyapp的东西。如何实现这一点?在WEB-INF/sun-WEB.xml中: <sun-web-app> <context-root>/this_is_my_funky_url<

嘿,伙计们,

我正在使用GlassFishV3在JavaEE中开发一个应用程序。应用程序的URL类似于
localhost:8080/MyAppCorporation war/
,不太直观。我想知道,当用户尝试访问应用程序时,是否可以将其更改为更有用、更容易记住的内容。例如,类似myeasyapp的东西。如何实现这一点?

在WEB-INF/sun-WEB.xml中:

<sun-web-app>
    <context-root>/this_is_my_funky_url</context-root>
</sun-web-app>

/这是我的时髦网址