如何在我的网络服务器(Wildfly)在java中运行的系统的C盘中创建一个文件
我的 war 文件正在 Wildfly 内运行,该文件位于位置“C:/wildfly9.0.2/standalone/deployments” 我的要求是从我的代码在 C:/output 中创建一个文件。
我无法进入 Wildfly 文件夹的层次结构。
有没有办法访问父文件夹并在所需位置生成文件?
My war file is running inside Wildfly which is placed on location "C:/wildfly9.0.2/standalone/deployments"
My requirement is to create a File in C:/output from my code.
I am unable to go up in the hierarchy of Wildfly folder.
Is there any way to access parent folder and generate a File on required location ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论