I am running a spring boot application where I have to run SQL statements that I have written .sql file is saved in the resource directory.
I don't want to run the script on the application startup. I have scheduler which run every 5 hour which does this job
Here is how my folder structure looks like
How can I pick those SQL files in my service class and execute those statements written in the file?
I am very new in spring boot I have used spring data JPA but never have executed SQL statements from the file. How to use Spring JDBC to do that?
How can I load these files in-service classes and execute them?