jfinal 读取配置文件

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;
    }
}
原文地址:https://www.cnblogs.com/zt528/p/5429709.html