afterJFinalStart() 与 beforeJFinalStop()


The afterJFinalStart() and beforeJFinalStop() methods in JFinalConfig can be overridden by developers in the JFinalConfig inheritance class. JFinal will call back the afterJFinalStart() method after the system startup is completed, and will call back the beforeJFinalStop() method before the system is shut down. These two methods can easily give developers the opportunity to perform additional operations after the project is started and before it is shut down, such as creating a scheduling thread after the system is started or writing back to the cache before the system is shut down.