Skip to content
Advertisement

Error in Debug caused by creation of beans

I state that I am new on the forum and I am a beginner with Java, so I apologize in advance for any mistakes.

I’m working on a web application in Java, using Spring Boot, to utilize Google Drive API for list files on my Google Drive. I’m follow the courses on youtube from carbonrider, so the main and the controller are the same created from him, but in debug I receive an error about creating beans. I’ll show you the code :

CollaborativeApplication.java

JavaScript

HomePageController.java

JavaScript

This is the error that i recive in debug mode :

JavaScript

What i want to do is have the permits to use the google drive API, accept the terms and go redirect on -> index.html.

Someone could help me to fix this error and explains why i’ve received it? I’ve search it but i havent find something to fix the error.

I thank you in advance for the support guys!

Advertisement

Answer

You need to define google.service.account.key in you application.properties file of the module or of the project level build.gradle file or pom.xml file, whichever you are using.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement