PropertiesConfiguration - Using “/” in Property value

前端 未结 5 1429
梦毁少年i
梦毁少年i 2021-01-27 04:38

I am using PropertiesConfiguration for loading and storing property values.

If I use character \'/\' in Property value, it gets saved as\'\\/\'. Could you please help me

5条回答
  •  梦谈多话
    2021-01-27 05:21

    The escaping of / is done to fulfill the requirements of the properties file format. This format is described at the JavaDoc of Properties.load(Reader).

    If that's not what you want, then you don't really want a properties file, but some other (possibly similar) format.

提交回复
热议问题