'How to get files from src/main/resources folder for the springboot application running in docker

My application is docker containerized and running in aws. I want to read files from src/main/resources. If I'm giving direct path as src/main/resources, it's returning empty resources.

We tried another approach as well classpath:folderName/*.

Both ways are working in local without any issues. But when we deploy our application to aws, it's not working.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source