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.
我打算为我的 Java EE 6 应用程序使用自定义目录结构。如何在保持项目正常运行的同时进行此更改?
您不能覆盖此位置,它在规范中是“硬编码”的。Servlet 规范 3.0说:
10.5 目录结构 目录的内容WEB-INF是: /WEB-INF/web.xml部署描述符。
目录的内容WEB-INF是:
WEB-INF
/WEB-INF/web.xml
其他地点仅此而已。