I created a fat jar using Spring boot. Inside the bootstrap.yml I am trying to access a file which is under /resources only.
But I am getting java.io.FileNotFoundException: class path resource [secret.json] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/Users/test/Downloads/Demo/demo-api/target/demo-api-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/secret.json
The same is working in IDE. What could be the wrong?
Here is the decompiled jar file structure screenshot and package structure