<分区>
只是好奇,如果不使用 Netbeans 来运行 Web 应用程序,我该如何运行它?我有 Apache Tomcat 7。我在哪里复制粘贴我的文件?还有其他配置吗?
我尝试将我的 netbeans 项目文件夹粘贴到 apache 的 webapp 文件夹中,但它无法构建。
<分区>
只是好奇,如果不使用 Netbeans 来运行 Web 应用程序,我该如何运行它?我有 Apache Tomcat 7。我在哪里复制粘贴我的文件?还有其他配置吗?
我尝试将我的 netbeans 项目文件夹粘贴到 apache 的 webapp 文件夹中,但它无法构建。
最佳答案
从 netbeans 将您的项目导出为 WAR 文件并将该 project_name.WAR 文件放入 Webapps 文件夹并运行 tomcat。
另请注意,您的项目中有一个 web.xml 文件
关于java - 如何手动运行 netbeans webapp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22652478/