I am trying to understand the resources
directory in a Spring Boot application and if it is the correct place to place my google-services.json
file.
Are the files put in the resources
folder visible in any way to the public when the application is launched? (e.g. can a random user on the internet list what is in the resources
directory)? Or is that folder private only to the application?
I want to make sure no random user on the internet can get access to the google-services.json
because it has API Keys.
The reason I put it in the resources
folder is because I need to read that file in my application code as an input stream to pass into another class.
If there is a better place to put this file please let me know.