本文介绍了是否可以在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。来自(重点是我):

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):

无论您是使用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.

但是您不能使用,则必须使用或。

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.

可能感兴趣:碰巧以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项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 02:11