簡體   English   中英

我們可以在 ftp 服務器的默認目錄之外上傳文件嗎?

[英]Can we upload a file on ftp server outside its default directory?

I have created a sample Java Web Application in spring boot and inside Pom.xml I am using Maven Wagon to ftp my project's war file on FTP server.

但是,Maven Wagon 將戰爭文件上傳到 FTP 服務器的默認文件夾中。 我希望 Maven Wagon 將戰爭文件上傳到 FTP 服務器上的其他目錄中,例如 Tomcat Web-apps 目錄。

請告訴它是否可能。 如果是,那么需要在 Maven Wagon 配置中進行哪些更改

Don't have/know Maven Wagon, but code that takes an FTP URL will usually take the folder/file name as part of the URL.

由於文件名是在別處定義的,因此在 URL 中指定目標文件夾:

<url>ftps://secure.example.com/put/my/file/here</url>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM