How to unpackage and repackage a WAR file

后端 未结 8 1066

I have a WAR file. I would like to open it, edit an XML file, remove some jars and then re-package it.

I used WINRAR to open the WAR file and I removed some Jars and

相关标签:
8条回答
  • 2020-12-02 12:58

    Non programmatically, you can just open the archive using the 7zip UI to add/remove or extract/replace files without the structure changing. I didn't know it was a problem using other things until now :)

    0 讨论(0)
  • 2020-12-02 13:05

    no need to that, tomcat naturally extract the war file into a folder of the same name. you simply modify the desired file inside that folder (including .xml configuration files), that's all. technically no need to restart tomcat after applying the modifications

    0 讨论(0)
提交回复
热议问题