Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 NetBeans 8.0 开发我的第一个 Java Web 应用程序,但在项目文件夹中找不到部署描述符。我不知道它的位置。
我在网上搜索,然后写到它会在 WEB-INF 文件夹中,但我的 WEB-INF 文件夹是空的。
如果其他人面临同样的问题,当您创建一个要包含的新项目时,可以选择在 web.xml 中包含 servlets 映射,如果您勾选该选项,那么您的 web.xml 会显示 servlets 映射。并且 web.xml 将在 WEB-INF 文件夹中找到。