简体   繁体   English

将Spring MVC Rest服务与Google Cloud App Engine和Cloud MySQL集成

[英]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应用程序,或者两者都不是?

  1. 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. 以后,请查看有关优化它们的互操作性的本文

  2. 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.

相关问题 无法在Google App Engine上访问Spring MVC Rest服务 - Spring MVC rest service not accessible on Google App Engine 谷歌云应用引擎 Spring 部署错误 - Google cloud App engine Spring deploy error Spring 在 Google Cloud App Engine 上启动托管 - Spring Boot hosting on Google Cloud App Engine 在 Google Cloud App Engine 上构建 Spring Boot 应用程序的触发器 - Build trigger for Spring Boot application on Google Cloud App Engine 使用应用引擎部署本地主机上的谷歌云应用引擎和 Spring Boot 错误 - google cloud app engine and spring boot bug on localhost deploy with app engine 带有Spring MVC的Google App Engine - Google App Engine with Spring MVC 如何将Spring Boot(1.3.6)或任何Spring Boot项目(连接到云数据库)部署到Google App Engine? - How to deploy Spring Boot (1.3.6) or any Spring Boot project (connection to cloud database) to Google App Engine? 在Google App Engine中部署Spring + Hibernate + Maven + Google Cloud SQL应用程序 - Deploy Spring + Hibernate + Maven + Google Cloud SQL application in Google App Engine 如何将托管在 Google 云引擎上的 Spring Boot 应用程序连接到 mysql 数据库? - How to connect a spring boot application hosted on Google cloud engine to a mysql db? Google App Engine中的Spring MVC路由 - Spring MVC routing in Google App Engine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM