简体   繁体   English

文件夹挂载后的FileNotFoundException?

[英]FileNotFoundException after folder mount?

I get the java.io.FileNotFoundException when uploading new files in C:\\folders C:\\folders上传新文件时,我得到了java.io.FileNotFoundException

the C:\\folders is a mount created like so: C:\\folders是这样创建的安装:

mklink /D C:\folders \\IP_ADDRESS\folders 

PS: the network access between the local server and the distant server (having IP_ADDRESS) is granted, also by using only the normal folders (C:\\folders) without a mount it works. PS:授予本地服务器和远程服务器(具有IP_ADDRESS)之间的网络访问权限,同时仅使用普通文件夹(C:\\文件夹)而不安装它。

OS : Windows 操作系统:Windows

Server : Apache Tomcat 服务器:Apache Tomcat

Please is it a question of permissions? 请问是权限问题? or the creation of the link? 或创建链接?

You do not mount a folder with mklink, you create a link. 您没有使用mklink挂载文件夹,而是创建了一个链接。 You should really map a netwrok drive instead: 你应该真的映射一个netwrok驱动器:

net use u: \\IP_ADDRESS\folders 

and tell your app to upload files to u:. 并告诉您的应用程序将文件上传到您:

You might want to add the switch /persistent:Yes to make sure the mapping will persist after a reboot. 您可能希望添加switch /persistent:Yes以确保重新启动后映射将保持不变。 Use net use /? 使用net use /? to see all options. 看所有选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM