两年前,我使用 App Engine Cloud Endpoints 和 Datastore(Java 应用程序)编写了一个 Google App Engine 应用程序。
现在,我必须集成一个用 Spring Boot 编写的应用程序。
集成后,我希望 Google App Engine Cloud Endpoints 能够像 Spring Boot 应用程序一样正常工作。
更多信息:集成意味着,两年前我使用这个示例项目编写了一个应用程序: https://github.com/GoogleCloudPlatform/java-docs-samples/tree/7f5772f91a203ce266804cfbe89429e2bb026273/appengine/endpoints-v1-helloworld
现在,我有一个与此类似的 Spring Boot 应用程序: https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/appengine-standard-java8/springboot-appengine-standard/src/main/java/com/example/appengine/demos/springboot
我的问题:这可能吗?
最佳答案
如果您想在 Spring Boot 应用程序中使用 Endpoints 的管理功能,App Engine Flex 正式支持此功能。理论上在 App Engine Standard 上是可行的,但不是受支持的场景。如果你想要一个使用 API 框架和 Spring Boot 的应用程序,我想这是可能的,尽管我不知道你为什么要使用两个不同的 Web 框架。使用一个或另一个效率会高得多。
关于java - 我们可以结合 Google App Engine Cloud Endpoints 和 Spring Boot REST Web 服务吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49333947/