我想从属性文件加载配置(apache commons配置).我的计划是:
PropertiesConfiguration pc = new PropertiesConfiguration("my.properties");
System.out.println(pc.getString("myValue"));
Run Code Online (Sandbox Code Playgroud)
在my.properties我有
myValue=value,
Run Code Online (Sandbox Code Playgroud)
用逗号
当我运行程序时,输出是value,而不是value, with comma.看起来值加载到,字符之前.
有任何想法吗?