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.
我创建了一个 mail.jar 文件和 mywar.war 文件。我需要在 manifest.mf 中设置什么,使用 mail.jar 作为库?
您不使用 MANIFEST.MF 将 jar 放入 war 文件的类路径中。你只要把它放到war文件的WEB-INF/lib中。
类路径:../relative/path_to_/mail.jar
编辑:注意:相对路径应该参考程序启动的目录。