We configured a project in Google Developer console and also configured OAuth credentials for a user consent. This brings us to the next step of integrating Google Drive API dependencies. The integration steps are pretty easy. Once you know the latest API versions from repositories like https://mvnrepository.com, you can easily proceed.

Setting up Spring Boot Project
Spring has done an excellent job by building https://start.spring.io. Instead of manually creating pom.xml or build.
Webjars
Instead of building a simple Spring project, we have configured another interesting dependency –
You don’t have to keep separate dependency configuration for User Interface and API/Services. If you want to develop SCS (Self Contained Systems) applications
Google Drive API dependency
Setting up Spring boot project was quite easy, now it is time to add the Google Drive Dependencies. Google has been periodically publishing the API clients for various programming languages including Java, Python, Javascript etc. Since our example uses Spring Boot, we will configure API for Java.
Once you declare the dependencies, Eclipse will take time to download the entire dependency tree. Make sure you have downloaded correct credential
Testing
To verify the integration steps are valid, build the entire project and then hit the URL in the browser. For the first time, you will be redirected to a Google Sign in page. Choose
Finally, you should see a success message indicating the integration is successful. At this
4 replies on “Google Drive API integration with Spring Boot”
can u share all the cod ewith me
Hi Jyotiba,
You can find the source code at Github.
https://github.com/carbonrider/tutorial_google_drive_api_spring_boot
Hi,
This source code from Github doesn’t contains all the details for (Create/List/Delete/Upload/Folder). Can you please share the code using service account ?
Hi Dkon,
The code remains same for Create, delete etc. You can refer to my earlier videos for reference.