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.
简单的 project/lib 和 project/web/WEB-INF/lib 有什么区别?哪个 jar 应该在 project/lib 文件夹中,哪些 jar 应该在 web/WEB-INF/lib 中?
没有标准project/lib的东西,它可能是一个特定的项目,旨在将库保存在那里,并且在编译和部署时可能配置为从那里读取 jars,
project/lib
好像你把它放在WEB-INF/libweb contains 中,把这个目录中的所有 jars 放在运行时类路径中,这样它们在应用程序运行时可用
WEB-INF/lib
更好地使用 maven,无需在源代码控制中保存库,并且具有 maven 带来的许多其他优势