jfinal 讀取配置文件

/**
 * 配置文件工具類
 * @author Administrator
 *
 */
public class ConfigUtil {

    /* 加載服務配置文件  */
    private static Prop prop = PropKit.use(「test.properties」);
    
    
    private ConfigUtil(){}
    
    
    /**
     * 判斷是否調試定時任務
     * @return
     */
    public static boolean isDebug(){
        if(prop.getBoolean("bs.job.debug")){
            return true;
        }
        return false;
    }
    
    
}
相關文章
相關標籤/搜索