jfinal系统启动时调用的方法和系统停止时调用的方法

jfinal系统启动时调用的方法和系统停止时调用的方法

public class DemoConfig extends JFinalConfig {
//在系统停止时调用的方法
    public void beforeJFinalStop() {
   
    };
    //在系统启动时调用的方法
    @Override
    public void afterJFinalStart() {
        // TODO Auto-generated method stub
        super.afterJFinalStart();
     
    }
}

你可能感兴趣的:(jfinal系统启动时调用的方法和系统停止时调用的方法)