访问Azure Web应用程序的根目录 [英] Accessing the root directory of an Azure web app

查看:77
本文介绍了访问Azure Web应用程序的根目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用spring-boot和Java JRE 1.8来获取具有Linux环境的Azure Web应用程序。当我在Windows机器上本地运行时,我使用"user.dir";引用我的应用程序的根目录(即src文件夹),但Azure web-app上的
同样失败。那么有人可以指导我如何访问我的基于Linux的azure web应用程序的根目录吗?

I using spring-boot and Java JRE 1.8 to for an Azure web app with Linux environment. When I am running locally on my windows machine, I use "user.dir" to reference the root directory of my application (i.e. the src folder) but that same fails on Azure web-app. So can anyone guide me on how to access the root directory of my Linux based azure web app?

推荐答案

嗨Tanay,

Hi Tanay,

你能看看这个主题? 问题类似。

Can you take a look at this thread?  The issue appears similar.

尝试使用路径D:\\\\\\\\\\\\\\\\\\\\\\\\\您可以在此处了解有关Azure文件结构的更多信息
此处

trying using the path D:\home\site\wwwroot to refer to your app's root directory. You can learn more about Azure's file structure here.


这篇关于访问Azure Web应用程序的根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆