Recognizing properties file changes without restarting Tomcat

后端 未结 4 666
温柔的废话
温柔的废话 2020-12-19 01:47

Is there any way for the server to recognize the changes without restarting after a properties file updated? Because it causes Java.lang.OutOfMemoryError: PermGen space afte

4条回答
  •  猫巷女王i
    2020-12-19 01:57

    If you're on JDK 7, you can watch the file system for changes and reload the file when necessary.

提交回复
热议问题