- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
我按照 o7planning 的教程进行操作,但在第 6 步卡住了:
http://o7planning.org/en/10169/java-servlet-tutorial
这只是一个显示 HelloWorld 的简单项目,但由于某种原因,我不断收到 404
错误。详情:
到目前为止我尝试过的解决方案(但它们不起作用):
Right-click project -> properties -> Project Facets -> Runtimes -> checked "Apache Tomcat v9.0" -> Apply -> finish.
Server tab -> Right-click "Tomcat v9.0..." -> properties -> switch location -> Choose "Use tomcat installation" on "Server locations" panel.
最佳答案
问题已解决,我没有添加 index.html。 web.xml
中指出了这一点注意:一个项目可能有多个web.xml文件。
如果
中还有另一个 web.xmlsrc/main/webapp/WEB-INF
那么你可能需要添加另一个索引(这次是index.jsp)到
src/main/webapp/WEB-INF/pages/
关于java - Tomcat 404 错误 : The origin server did not find a current representation for the target resource or is not willing to disclose that one exists,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43186315/
我是一名优秀的程序员,十分优秀!