Reading Java Properties file without escaping values

前端 未结 8 1834
滥情空心
滥情空心 2020-12-06 09:54

My application needs to use a .properties file for configuration. In the properties files, users are allow to specify paths.

Problem

Propert

8条回答
  •  囚心锁ツ
    2020-12-06 10:13

    Two options:

    • use the XML properties format instead
    • Writer your own parser for a modified .properties format without escapes

提交回复
热议问题