Spring boot – load file from outside classpath

By | July 12, 2018
Questions:

I have to load file from outside of my classpath.
The location depends of env properties:

  • in dev properties I want to load file from resources folder
  • in prod properties I want to load file from path (/location/file)

What is the best way to do it?

Answers:

Leave a Reply

Your email address will not be published. Required fields are marked *