AS_Tomar
AS_Tomar

Reputation: 11

Integrating Spring MVC Rest service with google cloud app engine and cloud mysql

I have a rest web services project in spring which i want to deploy in Google Cloud app engine and want to access the google cloud mysql database from my project,i don't know how to do that as i am new to google cloud platform.

Upvotes: 0

Views: 809

Answers (2)

Mike E.
Mike E.

Reputation: 382

There is actually a project that can help you with this - Spring Cloud GCP.

Checkout the Cloud SQL sample app and the Spring Pet Clinic using Spring Cloud SQL starter codelab.

Upvotes: 0

Tudormi
Tudormi

Reputation: 1112

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?

  1. Spring and App Engine Standard
    This codelab is a good starting point for creating a Spring Boot Java application on Google App Engine. You can also check this Github repo as it's a HelloWorld, Java 8, Spring Boot for App Engine Standard. Later, check this article on optimizing their interoperability.

  2. App Engine Standard and Google Cloud SQL
    Check out the documentation from 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. This one is in Cloud SQL's documentation, targeting connections from 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.

Upvotes: 1

Related Questions