Spring Boot Google Cloud Logging example

In this section,  we will deploy a Spring Boot application in Google Cloud App Engine, and  we will introduce how to write logs to Google Cloud Logging and how to check the logs in the Logs Explorer. 1. Creating a simple spring boot web application First, open the Spring initializr   Then, Provide the Group and Artifact name. We have provided Group name  and Artifact  spring-boot-gcp-logging-example . Here I selected the  Maven  project - language  Java 11  -  Spring Boot  2.7.9  and  add  Spring web dependency,  and GCP Support . Then, click on the Generate button. When we click on the Generate button, it starts packing the project in a .zip( spring-boot-gcp-logging-example ) file and downloads the project. Then, Extract the Zip file.  Then, import the project on your favourite IDE. Final Project directory: In the pom.xml, add Stackdriver Logging Starter: <!-- Starter for Stackriver Logging --> < dependency > < groupId >

Spring Boot + Google Cloud Vision Example

In this section, we will take a look at how to integrate Google Cloud Vision with Spring Boot. We will do following experiments with Google Cloud Vision & Spring Boot. Detect Faces from an Image Extract Text from an Image Recognize Landmark from an Image Extract Text from a PDF Retrieve Labels from an Image 1. Create a GCP Project First, Sign into the Google console at . You can create a new project by first selecting the project dropdown in the top left and selecting " New Project ". Next, specify your GCP  Project name  and  Project ID . Then  Click on the " CREATE " button. Copy " Project ID " and keep it for future purposes. 2. Enable Cloud Vision API From cloud console, search for " Cloud Vision API " like below and click on " Cloud Vision API " button. Next, click on " ENABLE " button, 3. Create a service account key First choose " IAM & Admin " and then click on "