Instead of having a path variable (i.e. for accessing images) in different parts of JAVA Spring Controllers is there a way to define a variable in config file and then use it simply through such variable:
Config file:
String imageFolder = "D:\\Projects\\project_name\\images\\";
Spring Controller:
File outputFile = new File(imageFolder + img_name + "." + img_ext);
ImageIO.write(image, img_ext, outputFile);
Thaks in advance.