How to write multiple line property value using PropertiesConfiguration?

前端 未结 4 2063
面向向阳花
面向向阳花 2020-12-08 03:53

I have a properties file with a property with a List value (comma separated), how to write this property in a multi-line ? (backslash after the comma)?

I can\'t find

4条回答
  •  一向
    一向 (楼主)
    2020-12-08 04:07

    Another option could be is to use one of properties formats that is designed to support multi-line values.

    XML can handle multi-line properties well, but it has a lot of noise.

    MProps: is an example of the format with almost no special formatting required: https://github.com/mprops/mprops-java

提交回复
热议问题