May 14, 2021 JFinal manual
The after JFinalStart() and before JFinalStop() methods in JFinalConfig are available for developers to override in the JFinalConfig inheritance class. J
Final calls back to the JFinalStart() method after the system is started, and the before the system is closed to the before JFinalStop() method.
These two methods make it easy for developers to do additional work after the project starts and before it shuts down, such as creating a scheduling thread after the system starts or writing back to the cache before the system shuts down.