问题描述
||
是否有一个Java库可以读取配置文件,例如Apache Http使用的那些伪XML?
例:
some_variable true
<myconf>
order Cache1
order Cache2
<Cache>
can_search yes
can_count yes
</Cache>
<Cache2>
can_search yes
can_count yes
</Cache2>
</myconf>
<details>
host 192.168.10.1
port 222
</details>
基本上,Perl模块Config :: General是否有Java替代品?
我只需要阅读文件,无需编写。
解决方法
我终于为此创建了自己的库。
https://github.com/kkapelon/Apache-Httpd-conf-Reader
,根据SO上发布的另一个问题,Apache配置文件不存在Java库。