How to write multiple line property value using PropertiesConfiguration?

前端 未结 4 2047
面向向阳花
面向向阳花 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:12

    If you mean the following; that just relies on backslash + end-of-line. I just found it documented in: http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html

    primes = 2,\
        3,\
        5,\
        7,\
        11
    

提交回复
热议问题