あなたの質問は非常に幅広く、アプリケーションを構築するための特定のフレームワークを使用している場合は指定しません。ほとんどのフレームワークはこれをサポートしていますので、Tomcatで実行しているプレーンなJavaアプリケーションを構築する場合は、 'commons configuration'などを利用してこれを行うことができます。春はthis tutorialで見つけることができると
String filePath = "/some/path/project.properties";
configuration = new PropertiesConfiguration(filePath);
FileChangedReloadingStrategy fileChangedReloadingStrategy = new FileChangedReloadingStrategy();
// 1 second refresh
fileChangedReloadingStrategy.setRefreshDelay("1000");
configuration.setReloadingStrategy(fileChangedReloadingStrategy);
完全な例を働いた:あなたはセットアップリロード戦略とプロパティの設定ができる「コモンズの設定」で
。
私は上記の作品をこの質問に正しい回答としてマークしてください。 – Jeroen