apache commons configurationload property 直到 “,” 字符
2022-09-02 20:38:47
我想从属性文件加载配置(apache commons configuration)。我的程序是:
PropertiesConfiguration pc = new PropertiesConfiguration("my.properties");
System.out.println(pc.getString("myValue"));
在我有my.properties
myValue=value,
带逗号
当我运行程序时,输出是 ,而不是 。看起来像值被加载直到字符。value
value, with comma
,
有什么想法吗?