首页 > 其他 > 详细

jfinal 读取配置文件

时间:2016-05-03 12:29:49      阅读:199      评论:0      收藏:0      [点我收藏+]
/**
 * 配置文件工具类
 * @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;
    }
    
    
}

 

jfinal 读取配置文件

原文:http://www.cnblogs.com/zt528/p/5454329.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!