是否可以在Spring Boot + Datastore中实施创建Web项目? [英] Is it possible to implement create a web project in Spring Boot + Datastore?

查看:87
本文介绍了是否可以在Spring Boot + Datastore中实施创建Web项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前是Web开发的新手,现在我开始使用Spring Boot应用程序,并将其转换为标准App Engine项目。我想知道是否可以将Spring Boot应用程序转换为App Engine项目并仍然将数据存储区用作数据库?

I'm currently new to web developing and right now I started with a Spring Boot application which I converted to standard App Engine project. I'm wondering if it is possible to not convert my Spring Boot application to my App Engine project and still use Datastore as database?

推荐答案

是的,可以从GAE弹性环境中的应用程序,从GAE外部甚至从Google Cloud外部使用Cloud Datastore。来自 Cloud Datastore (重点是我):

Yes, it's possible to use the Cloud Datastore from an app in the GAE flexible environment, from outside GAE or even from outside the Google Cloud. From Cloud Datastore (emphasis mine):


您可以访问 Cloud Datastore 从任何地方使用Cloud
Datastore API。使用 Google Cloud客户端库来存储和
从中获取数据Cloud Datastore。

You can access Cloud Datastore from anywhere using the Cloud Datastore API. Use the Google Cloud client libraries to store and retrieve data from Cloud Datastore.

无论您是使用App Engine库,Google Cloud客户端库中的
还是调用$ b $,都可以使用相同的Cloud Datastore数据。

The same Cloud Datastore data is available regardless of if you use the App Engine libraries, the Google Cloud client libraries, or call the API directly.

但是您不能使用 GAE标准环境客户端库,则必须使用 Cloud Datastore客户端库 Cloud Datastore API v1

But you can't use the GAE Standard Environment Client Libraries, you have to use either the Cloud Datastore Client Libraries or the Cloud Datastore API v1.

可能感兴趣:部署到App Engine灵活环境指南碰巧以spring boot应用程序为例。

Potentially of interest: the Deploying to the App Engine Flexible Environment guide happens to use a spring boot app as example.

这篇关于是否可以在Spring Boot + Datastore中实施创建Web项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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