Package com.xiaoleilu.hutool

Examples of com.xiaoleilu.hutool.Setting.store()


    //重新读取配置文件,可以启用一个定时器调用此方法来定时更新配置
    setting.reload();
   
    //当通过代码加入新的键值对的时候,调用store会保存到文件,但是会覆盖原来的文件,并丢失注释
    setting.setSetting("name1", "value");
    setting.store("/home/looly/XXX.setting");

    //获得所有分组名
    setting.getGroups();
   
    //将key-value映射为对象,原理是原理是调用对象对应的setXX方法
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.