谷歌端点迁移到版本2后,参数Named(“ key”)密钥键未在api资源管理器中显示

时间:2018-08-20 16:55:17

标签: google-app-engine google-cloud-endpoints google-cloud-endpoints-v2

我也将Google端点版本1项目也迁移到了Google端点。迁移后,参数名称完全像这样

@Named("key") Key key

未显示在api资源管理器中。

但是,当我将密钥更改为其他名称时,例如 @Named(“ serializeablekey”)密钥serializeablekey 然后我可以看到参数出现在api资源管理器中。

确切的方法是这样的

public SimpleValue update(User user, @Named("key") Key key, SomeDTOClass dto, @Named("anotherkey") Key anotherkey) throws ServiceException

关键是 com.google.appengine.api.datastore.Key

ApiMethod注释是这样的

@ApiMethod(httpMethod = ApiMethod.HttpMethod.PUT, name="sample.update", path = "sample.update")

我看到的最接近的问题是在本地运行应用程序时控制台上的这些警告

Aug 20, 2018 7:50:58 PM com.google.api.server.spi.config.jsonwriter.JacksonResourceSchemaProvider hasUnresolvedType
WARNING: skipping field of type java.lang.Class<?> because it is unresolved
Aug 20, 2018 7:50:58 PM com.google.api.server.spi.config.jsonwriter.JacksonResourceSchemaProvider getResourceSchema
WARNING: skipping field 'class' of type 'java.lang.Class<?>' because it is unresolved.
Aug 20, 2018 7:50:58 PM com.google.api.server.spi.config.jsonwriter.JacksonResourceSchemaProvider hasUnresolvedType
WARNING: skipping field of type java.lang.Class<?> because it is unresolved
Aug 20, 2018 7:50:58 PM com.google.api.server.spi.config.jsonwriter.JacksonResourceSchemaProvider getResourceSchema
WARNING: skipping field 'class' of type 'java.lang.Class<?>' because it is unresolved.

是否有一些带有“命名”注释的已知发证?

0 个答案:

没有答案