Automatically Reload Properties File in Spring Framework
Can't believe I spent so many days trying to get this to work, in the end it is actually so simple lol, now there is no need to restart my server whenever the properties file change, spring will detect and reload it on the fly. I created a demo project in hope that it will help someone, there really is no need to spend days looking for such a simple answer ;) My Project Structure demo.jsp <h1>${hostname}</h1> <h1>${driver}</h1> <h1>${reading}</h1> <h1>${writing}</h1> database.properties hostname=localhost driver=oracle.jdbc.OracleDriver language.properties reading=english,chinese,malay writing=english,malay web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="htt