In the topic Using google application credentials JSON? are the information about credential.json as the Secret File.
But it does’t work with standard localization of credential.json (/src/main/resources ) with invoke this method:
GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(jsonFactory, new InputStreamReader(MailboxService.class.getResourceAsStream(“/credential.json”)));
I get error:
java.lang.NullPointerException: null
at java.base/java.io.Reader.(Reader.java:168) ~[na:na]
at java.base/java.io.InputStreamReader.(InputStreamReader.java:76) ~[na:na]
Should i use the sugested /etc/secrets/<YOUR_FILE> directory or the problem is somewhere else ?