问题描述
我使用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?
推荐答案
你能看看这个主题? 问题类似。
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 structurehere.
这篇关于访问Azure Web应用程序的根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!