문제

How can I return a value (i.e. boolean, string, etc.) from either an @endpoint.method or a @MyModel.method (EndpointsModel)?

도움이 되었습니까?

해결책

As per the documentation, you cannot write simple types like String, int, etc. The return types will need to be a POJO, an array or a Collection.

https://developers.google.com/appengine/docs/java/endpoints/paramreturn_types

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top