且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Tomcat服务器上的Intellij Web应用程序显示http://localhost:8080/index.jsp而不是http://localhost:8080/myapp/index.jsp

更新时间:2022-04-05 06:25:12

您可以在tomcat服务器的编辑配置"中输入应用程序URL.

You can enter your application URL in the 'Edit Connfiguration' of your tomcat server.

  • 点击编辑配置"
  • 在启动页面中输入您的应用程序URL

注意:-上面的解决方案很可能会起作用,如果不能解决,则可能需要在部署"选项卡中将应用程序上下文更改为"\ myApp".

Note:- Most probably above solution will work, if it doesn't then you might need to change the application context to '\myApp' in deployment tab.