public class ConfigUtil {

    
    /* 加载公用配置文件  */
    private static Prop prop = PropKit.use("config.properties");
    
    private ConfigUtil(){}
    
    
    /**
     * 是否为启用定时任务
     * @return
     */
    public static boolean isStart(){
        if(prop.getBoolean("bs.job.start")){
            return true;
        }
        return false;
    }
}

 

相关文章:

  • 2022-12-23
  • 2022-02-09
  • 2021-05-18
  • 2021-06-24
  • 2021-10-11
  • 2021-08-13
  • 2021-07-18
  • 2021-12-13
猜你喜欢
  • 2021-09-07
  • 2021-12-01
  • 2022-01-15
相关资源
相似解决方案