Java库,用于读取Apache httpd配置文件与Perl的Config :: General相同

问题描述

|| 是否有一个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库。     

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...