What is the best practice pattern for managing multiple configuration files within Spring? I have a web application that has several properties files that store a myriad of settings.
For example, user.properties stores user specific information: the directory location of profiles, where certain icons are located, the amount of seconds someone has before a timeout occurs, etc. Another property file contains images-related properties: the maximum height and width of an uploadable image, size restrictions, etc.
I would like to migrate all these properties into the Spring Bean framework, but I don't know how to proceed. I would like to keep these settings in multiple files, but I don't know how to specify several files into several contexts.
Lastly, I would like these files to be reloadable at runtime. In other words, if I edit the files at runtime, I would like Spring to determine that the file has been updated, and reload it.