示例#1
0
  @Test
  public void baseUse() {
    ConfigGroup cg = config.getGroup("test");
    System.out.println(cg.getString("test", "defval"));
    System.out.println(cg.getString("test1", "defval"));

    ConfigGroup cg2 = config.getGroup("test2");
    System.out.println(cg2.getString("test", "defval"));
    System.out.println(cg2.getString("test1", "defval"));
  }
示例#2
0
 public void setConfig2(ConfigService s) {
   config2 = s.getGroup(ConfigTest.class.getName());
 }