我使用PropertiesConfiguration来加载和存储属性值。PropertiesConfiguration - 在属性值中使用“/”
如果我在属性值中使用字符'/',它将被保存为'\ /'。你能帮我省下'/'而不是'\ /'吗?我在这里错过了什么吗?
PropertiesConfiguration databaseProperties;
databaseProperties = new PropertiesConfiguration("Properties.properties");
databaseProperties.setProperty("PropName", "jdbc:sqlserver://");
databaseProperties.save();
救了我的属性文件之后为
PropName = jdbc:sqlserver:\/\/
感谢,