gpt4 book ai didi

apache friends xampp tomcat - 如何将新目录添加到 webapps 文件夹

转载 作者:行者123 更新时间:2023-11-28 22:03:29 24 4
gpt4 key购买 nike

我是 tomcat 的新手,想创建一个 java webapp。我已经下载并安装了 XAMPP Windows 1.8.0。有一个文件夹 C:\xampp\tomcat\webapps\examples 并且在其中我有一个文件 test.jsp 当我通过以下 URL 访问它时它工作。

http://localhost/examples/test.jsp

我在 webapps 目录“C:\xampp\tomcat\webapps\myapplication”中创建了另一个文件夹,其中包含相同的文件 test.jsp 但是当我通过以下 URL 访问它时

http://localhost/myapplication/test.jsp

出现以下错误:

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404

localhost
Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4

是否必须进行一些配置才能将新文件夹添加到 tomcat?

最佳答案

localhost 是 apache 网络服务器的主机,您需要输入这种类型的地址:-

localhost:8080/examples/test.jsp

Apache 在 http://localhost/ 上运行Tomcat 在 http://localhost:8080/ 中运行

关于apache friends xampp tomcat - 如何将新目录添加到 webapps 文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12543799/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com