I’m executing a jar and passing a properties file in args
java - jar file.jar props.properties To read the properties file I’m using java.util.Properties.load. I want to know if there is a better way to do this with spring boot because properties file can exist in different locations or with different names but always the same properties.
I tried with PropertySource but I couldn’t find a way to set properties file dynamically