GOOGLE_APPLICATION_CREDENTIALS must be defined.How to set enviroment variable at Java Spring on Heroku?
问题 I am using Firebase and Google Cloud Vision api and Cloud Storage with Java Spring. I create the value of GOOGLE_APPLICATION_CREDENTIALS via eclipse on my own computer. I am using heroku for host. But I could not find how to set this enviroment variable on the server I hosted. Here is the error Message":"An error has occurred.","ExceptionMessage":"The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable