ruh*_*gry 6 deployment google-app-engine
我创建了我的第一个应用程序GoogleApps,我想在服务器上部署它.它不起作用,在日志中我发现了一个错误:
来自servlet com.google.appengine.api.datastore.DatastoreNeedIndexException的未捕获异常:此查询的索引尚未准备好提供.请参阅管理控制台中的"数据存储索引"页面.此查询的建议索引是:
<datastore-index kind="Greeting" ancestor="true" source="manual">
<property name="date" direction="desc"/>
</datastore-index>
Run Code Online (Sandbox Code Playgroud)
我想我必须将此代码粘贴到我的应用程序中,但我不知道在哪里.我正在学习本教程:
有任何想法吗?
提前致谢 :)
Chr*_*ris 10
假设您正在使用Java应用程序引擎,那么该代码需要datastore-indexes.xml放在您WEB-INF目录中的文件中.完整的xml文件如下所示:
<?xml version="1.0" encoding="utf-8"?>
<datastore-indexes autoGenerate="true">
<datastore-index kind="Greeting" ancestor="true" source="manual">
<property name="date" direction="desc"/>
</datastore-index>
</datastore-indexes>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2776 次 |
| 最近记录: |