[英]Apache Tomcat or Eclipse redirect to localhost:8080/ instead of localhost:8080/projectname/index.jsp
I'm getting the same problem described in this question: Intellij web application on tomcat server shows http://localhost:8080/index.jsp instead of http://localhost:8080/myapp/index.jsp But in Eclipse. 我遇到的问题与上述问题相同: Tomcat服务器上的Intellij Web应用程序显示的是http:// localhost:8080 / index.jsp而不是http:// localhost:8080 / myapp / index.jsp但在Eclipse中。 I cannot setup the URL to open the correct index.jsp and it's not trivial how to do it en Eclipse from that answer.
我无法设置URL来打开正确的index.jsp,并且如何从该答案中进行Eclipse并非易事。
So, the problem was a misconfiguration I might have made in the process and I couldn't find. 因此,问题是我在处理过程中可能配置错误,而我找不到。 I solved the issue simply restarting a new project and copying my files there.
我解决了这个问题,只需重新启动一个新项目并在那里复制我的文件即可。 The issue was gone by then.
到那时问题已经不复存在了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.