【问题标题】:Google App Engine not supported Java.io.FileOutputStreamGoogle App Engine 不支持 Java.io.FileOutputStream
【发布时间】:2015-02-20 10:36:06
【问题描述】:

我是谷歌应用引擎的新手,请给我正确的解决方案,我的问题如下

当我尝试将我的 Web 应用程序部署到谷歌应用引擎时,它会在谷歌应用引擎中显示类似 Java.io.FileOutputStream restricted 的错误 如何解决。google app angine中是否有任何设置,以便在不更改java代码的情况下支持此类,

如果不是这个问题的替代方法是什么。以下是我的错误代码。

   Uncaught exception from servlet
  java.lang.NoClassDefFoundError: java.io.FileOutputStream is a restricted   class.
   Please see the Google App Engine developer's guide for more details.

【问题讨论】:

    标签: google-app-engine


    【解决方案1】:

    在 Google App Engine 上,很多类根本不可用,或者给您一个 SecurityException。您根本不允许在 GAE 上read or write files

    【讨论】:

    • 只是为了补充这个答案,如果您需要一些类似文件系统的存储,您应该查看提供流式 I/O 的Google Cloud Storage
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-17
    • 2019-08-07
    • 1970-01-01
    • 2012-10-19
    • 2017-03-24
    相关资源
    最近更新 更多