Java配置文件处理类 yao-config

fmms 12年前
     <div id="p_fullcontent" class="detail">     <p>A config tool for java. 一个为程序提供配置的组件,可方便的管理程序的配置文件。得用树形节点的方式管理配置文件,结构性强!</p>     <p></p>     <pre class="brush:java; toolbar: true; auto-links: false;">Config cf = new Config("classpath:com/yao/config/demo/config.xml"); System.out.println(cf.getString("yaoming.sex"));</pre>     <p></p>     <pre class="brush:xml; toolbar: true; auto-links: false;"><node name="yaoming">      <node name="sex" value="男">      </node>      <node name="age" value="25" writeable="true" text="表示年龄">      </node>      <node name="wife" value="tw" writeable="true">      </node>      <node name="son" value="yao小ming">      </node>  </node></pre>     <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326941471515" target="_blank">http://www.open-open.com/lib/view/home/1326941471515</a></p>    </div>