【问题标题】:How to create new kind of entity/commit new endpoint in Google App Engine (Datastore)如何在 Google App Engine(Datastore)中创建新的实体/提交新的端点
【发布时间】:2015-09-30 17:00:03
【问题描述】:

我在网上搜索了几天,不知道为什么我不能创建第二种实体(只有注册,登录不起作用)。我遵循本教程 (link to tutorial) 一切顺利,直到这一刻。我创建了新的 LoginRecord、LoginEndpoint,在 web.xml 中声明它(像注册记录和端点一样),但它不起作用。我什至没有在 Dev Console 中看到我的 URI。有什么建议我可以错过吗?

<servlet>
    <servlet-name>SystemServiceServlet</servlet-name>
    <servlet-class>com.google.api.server.spi.SystemServiceServlet</servlet-class>
    <init-param>
        <param-name>services</param-name>
        <param-value>com.example.taminni.mieszkanko.backend.LoginEndpoint,
            com.example.taminni.mieszkanko.backend.RegistrationEndpoint,
            com.example.taminni.mieszkanko.backend.MessagingEndpoint
        </param-value>
    </init-param>
</servlet>

在 Dev Console>Compute>Dashboard>CurrentLoad 我有:

"/_ah/spi/com.example.taminni.mieszkanko.backend.Registration"

但是 Login 行不存在。

【问题讨论】:

    标签: android google-app-engine android-studio google-cloud-messaging google-cloud-datastore


    【解决方案1】:

    好吧,我终于找到了我的错误。 我不写“.execute()”在:

    logService.createUser("a","a").execute();
    

    我预计这将是一件微不足道的事情,因为理论上一切都是正确构建的......记住机械错误!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-04-20
      • 2017-08-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多