[英]Integrating Spring MVC Rest service with google cloud app engine and cloud mysql
我在春季有一个其余的Web服务项目,我想在Google Cloud应用引擎中进行部署,并想从我的项目中访问Google Cloud mysql数据库,我不知道该怎么做,因为我是Google Cloud Platform的新手。
I am not sure of the question(s): you do not know how to connect App Engine to Cloud SQL or how to deploy a Spring application in App Engine, or both? 我不确定这个问题:您不知道如何将App Engine连接到Cloud SQL或如何在App Engine中部署Spring应用程序,或者两者都不是?
Spring and App Engine Standard Spring和App Engine标准
This codelab is a good starting point for creating a Spring Boot Java application on Google App Engine. 该代码实验室是在Google App Engine上创建Spring Boot Java应用程序的良好起点。 You can also check this Github repo as it's a HelloWorld, Java 8, Spring Boot for App Engine Standard.
您也可以查看此Github存储库,因为它是App Engine Standard的HelloWorld Java 8 Spring Boot。 Later, check this article on optimizing their interoperability.
以后,请查看有关优化它们的互操作性的本文 。
App Engine Standard and Google Cloud SQL App Engine标准和Google Cloud SQL
Check out the documentation from Google Cloud Platform. 查看来自Google Cloud Platform的文档 。 It's a very good starting point.
这是一个很好的起点。 The former document is found in App Engine's documentation, targeting connections to Cloud SQL.
前一个文档可在App Engine的文档中找到,目标是与Cloud SQL的连接。 This one is in Cloud SQL's documentation, targeting connections from App Engine.
这是Cloud SQL的文档中的内容,它针对来自App Engine的连接。
The task itself involves several technologies so your question cannot really be answered specifically . 该任务本身涉及多种技术,因此您的问题不能真正得到具体回答。 I suggest starting with those documents, run some Hello World tests, some Quickstarts ( example ) and then come up with specific questions if problems are encountered.
我建议从这些文档开始,运行一些Hello World测试,一些快速入门( 示例 ),然后在遇到问题时提出一些具体问题。
There is actually a project that can help you with this - Spring Cloud GCP . 实际上, Spring Cloud GCP是一个可以帮助您的项目。
Checkout the Cloud SQL sample app and the Spring Pet Clinic using Spring Cloud SQL starter codelab . 使用Spring Cloud SQL入门代码实验室签出Cloud SQL示例应用程序和Spring Pet Clinic 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.