I have a Spring boot application and an application.yml file. Now in order to read values from the application.yml I am using @Value annotation and it works fine.
The issue comes, when I try to read the application.yml file from a jar file. I have a jar file, and it is added as a dependency in the my spring boot application, now if I try to read application.yml file from the jar file using @Value I don't get anything.
Is there a way I can read the application.yml using the jar file dependencies?