I'm trying to make it so that in config/app.properties, I can have:
myfile.location=./myfile
where . is relative to said properties file. Is this possible ? I tried:
resourceLoader.getResource(appConfig.getMyFileLocation());
where resourceLoader and appConfig are autowired, but it won't work.
I usually reference my files like this:
myfile.location=classpath:myfile
where myfile is at the same location as the properties file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With