[英]Apache Tomcat returns 404 error for Web Application
I have a Spring MVC application WAR file deployed in ${catalina_home}/webapps
. 我在${catalina_home}/webapps
部署了一个Spring MVC应用程序WAR文件。 Let's say the name of the WAR is abc.war
and suppose, after tomcat unpacks the WAR and creates a folder abc
in webapps
folder, there is file named inside abc
, in path app/abc.js
.After running the tomcat server, I typed ' http://localhost:8090/abc/app/abc.js ` on the browser. 假设WAR的名称为abc.war
并假设在tomcat解压缩WAR并在webapps
文件夹中创建一个文件夹abc
之后,在路径app/abc.js
有一个名为abc
文件。运行tomcat服务器后,我在浏览器上输入' http:// localhost:8090 / abc / app / abc.js` 。 This returns an 404 error on the browser. 这将在浏览器上返回404错误。
Operating System: Windows 7
Apache Tomcat: version 7, running on PORT 8090.
Java version: 8
This setup is the same on all other systems with the team of developers I work with and it works for them on their system. 我与之合作的开发人员团队在所有其他系统上的设置均相同,并且适用于他们的系统。 But it does not work on my system. 但这在我的系统上不起作用。 Please can anybody help me with an insight why this could happen and possibly a fix will be great respite. 请任何人能帮助我了解为什么会发生这种情况,并且可能会有很大的喘息机会。 thanks. 谢谢。
Please find below point will effected on application 请注意以下几点将影响申请
Hope so its will help you :) 希望它能对您有所帮助:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.