[英]GWT Project reads properties file correctly at dev mode, but couldn't find it when I deployed it
[英]Deployed GWT web application can't find path specified in properties file
我在glassfish3 \\ glassfish \\ domains \\ domain1 \\ config中放置了一個屬性文件,應用程序可以讀取指定的值,但是在部署的同一服務器上找不到指定的路徑,例如:
Props.properties的內容是:
FilePath = // 192.xxx.xxx.xxx/glassfish3/FolderName
我的應用程序拋出一個錯誤,提示文件或文件夾不存在,甚至不存在。
正確的方法是什么?
威爾普,我通過以下方法解決了問題:
FilePath = / root / glassfish3 / FolderName
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.