如果文件很大,如何拆分war文件并将其部署在同一上下文根中
我们有一个包含 jsp fils 的 war 文件,大约 40 MB。当我们部署这个文件时,部署需要很长时间。所以我们想在不同的战争中分割文件,如果我们分割文件,上下文根将会不同。我需要一个解决方案来将此 jsp 文件置于相同的上下文根目录下。请帮助我解决这个问题。
We are having a war file containing jsp fils which is about 40 MB. when we deploy this file its taking long time to deploy. so we want to split the files in different wars, If we split files the context root will differ. I need a solution to bring this jsp file usder same context-root. Kindly help me to solve this problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我猜你的 WAR 文件大小的大部分都是
/WEB-INF/lib
下的库。您可以将大部分(如果不是全部)JAR 直接放入 JBoss 中,这将导致非常小的 WAR。看看这里:在 JBoss AS 5 中哪里放置共享库?I guess the majority of your WAR file size are libraries under
/WEB-INF/lib
. You can place most (if not all) JARs in JBoss directly, which will result in very small WAR. Take a look here: Where to put a shared library in JBoss AS 5?