我使用PropertiesConfiguration來加載和存儲屬性值。PropertiesConfiguration - 在屬性值中使用「/」
如果我在屬性值中使用字符'/',它將被保存爲'\ /'。你能幫我省下'/'而不是'\ /'嗎?我在這裏錯過了什麼嗎?
PropertiesConfiguration databaseProperties;
databaseProperties = new PropertiesConfiguration("Properties.properties");
databaseProperties.setProperty("PropName", "jdbc:sqlserver://");
databaseProperties.save();
救了我的屬性文件之後爲
PropName = jdbc:sqlserver:\/\/
感謝,