1
}
就此,问题的根源找到了,以后写程序的时候得多注意这些细节。以下附上setProperty(String key, String value)方法的描述:
1
Object java.util.Properties.setProperty(String key, String value)
2
Calls the Hashtable method put. Provided for parallelism with the getProperty method. Enforces use of strings for property keys and values. The value returned is the result of the Hashtable call to put.
3
4
See Also:
5
getProperty
6
Parameters:
7
key: the key to be placed into this property list.
8
value: the value corresponding to key.
9
Returns:
10
the previous value of the specified key in this property list, or null if it did not have one.
11
Since: 1.2
2
3
4
5
6
7
8
9
10
11