I try to load a resource file as a stream:
public static InputStream getClientSecretStream() {
return ClientSecretsUtils.class.getClassLoader().getResourceAsStream("/Me/my_txt.json");
}
I have the file under:
"/src/main/resources/Me/my_txt.json"
But .getResourceAsStream("/Me/my_txt.json");
returns null
and .getResourceAsStream("my_txt.json");
returns null as well
what should I check for?