Eclipse不会生成谷歌云端点客户端库 [英] Eclipse doesn't generate google cloud endpoint client library

查看:129
本文介绍了Eclipse不会生成谷歌云端点客户端库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建我的第一个GAE端点应用程序,而不是从类生成端点,我想创建我自己的个性化端点...这可能吗?



我写了这个类:

  @Api(name =my_endpoint,path = my_endpoint)
public class MyFirstEndpoint {

@ApiMethod(name =my_method,path =my_method,httpMehod = HttpMethod.GET)
public Response myMethod(@Named (param1)String param1){
...
}

}

但是当我尝试在Eclipse中生成Endpoint Client Library时,它说有错误......最糟糕的是它没有说出它是什么错误! p>

解决方案

是的,您可以创建自定义终端节点。 错误。我认为你不能在Api的名字中使用_,也不能使用ApiMethod ...

尝试使用myEndpoint和myMethod作为名称,在路径中保留_。


I'm trying to create my first GAE Endpoint app, and instead of generating an endpoint from a class, I'd like to create my own personalised Endpoint... is this possible?

I've written this class:

@Api(name="my_endpoint", path="my_endpoint")
public class MyFirstEndpoint {

  @ApiMethod (name="my_method", path="my_method", httpMehod=HttpMethod.GET)
  public Response myMethod(@Named("param1") String param1) {
    ...
  }

}

But when I try to generate the Endpoint Client Library in Eclipse, it says that there was an error... and the worst thing is that it doesn't say what error it is!

解决方案

Yes it's possible to create custom Endpoints.

I had the same error. I think you can't use "_" in the name of the Api nor the ApiMethod...

Try using "myEndpoint" and "myMethod" as the names and keep the "_" in the paths.

这篇关于Eclipse不会生成谷歌云端点客户端库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆