I need to find a war file in the java-code and upload it to tomcat8. I do not understand how this is done. I looked at the official website, or did not understand anything, or nothing. That is, somewhere on the disk is the file C: \ test \ test.war I find it in another application and I want to upload it to the server. I don’t want to do this with my hands, as I automate the process. rest api could not
Who can tell or give an example of how to upload a specific file to the server in java?
webapps/, as a regular file. Or via HTTP via the Tomcat manager interface . But the easiest option without java code is curl. - enzo