Set empty string as the value of a key in properties file

jdbc.password=

How can I assign jdbc.password key in my application.properties file an empty string?

I understand I can do this programmatically as follows, but I would like to set this in properties file.

Properties props = new Properties();
props.put("password", "");
Jon Skeet
people
quotationmark

Just leaving the value empty on the RHS should be fine:

password=

Sample code:

import java.io.*;
import java.util.*;

class Test{
    public static void main(String [] args) throws Exception {
        Properties props = new Properties();
        props.load(new StringReader("password="));
        System.out.println(props.size()); // 1
        System.out.println(props.getProperty("password").length()); // 0
    }
}

people

See more on this question at Stackoverflow