I have a weak inte.net connection so copying the Spring boot fat jar to my Linux server is time consuming. I use FileZilla to copy my jar file to my Linux server even if I change only a single line of code. Is there a better way. Is there a way I could send only the class I change to the server not the whole thing. Or is there an easier way to do it like with HTML and JavaScript?
You can extract the jar file contents using jar xf
command, replace the file and then package it again using jar cvf
command.
This is simply doing unzip, changing the old file with uploaded one and again compressing it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.