This article is a mirror article of machine translation, please click here to jump to the original article.

View: 22426|Reply: 1

[Source] Java modifies the configuration file of the war package

[Copy link]
Posted on 2021-11-10 10:02:31 | | | |
Requirements: Modify the configuration file in the war package, because the upgrade iteration is too fast, so the project does not want to regenerate the war package. WAR is a JAR-like compressed file, which is generally a JavaWeb project compressed file that can be deployed directly to Tomcat WebAAP.

Docker deploys war applications to Tomcat containers
https://www.itsvse.com/thread-10125-1-1.html

Spring overrides the default configuration inside the jar package
https://www.itsvse.com/thread-10129-1-1.html
Use the following command to unzip the war:



I need to modify the yml configuration file in the war package, path: \WEB-INF\classes\config\bootstrap.yml, try to modify a configuration, and then save.



Regenerate the war package with the following command:




(End)




Previous:Docker POI error exception solution
Next:Java java.util.AbstractMap.SimpleImmutableEntry for details
 Landlord| Posted on 2021-12-24 10:56:52 |
Replace the file in the jar package (Not tested

Extract the test.jar file to the test directory, replace the file in the package, and enter the test directory to execute the following packaging command:


Note: The jar command option 0 indicates no compression
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com