"store以后" 你store到哪里了啊?

解决方案 »

  1.   

    不用去掉,不影响显示的,该怎么用还是怎么用,去看看JDK API里的Properties类
      

  2.   

    storepublic void store(OutputStream out,
                      String header)
               throws IOExceptionWrites this property list (key and element pairs) in this Properties table to the output stream in a format suitable for loading into a Properties table using the load method. The stream is written using the ISO 8859-1 character encoding. 
    Properties from the defaults table of this Properties table (if any) are not written out by this method. If the header argument is not null, then an ASCII # character, the header string, and a line separator are first written to the output stream. Thus, the header can serve as an identifying comment. Next, a comment line is always written, consisting of an ASCII # character, the current date and time (as if produced by the toString method of Date for the current time), and a line separator as generated by the Writer. Then every entry in this Properties table is written out, one per line. For each entry the key string is written, then an ASCII =, then the associated element string. Each character of the element string is examined to see whether it should be rendered as an escape sequence. The ASCII characters \, tab, newline, and carriage return are written as \\, \t, \n, and \r, respectively. Characters less than \u0020 and characters greater than \u007E are written as \uxxxx for the appropriate hexadecimal value xxxx. Leading space characters, but not embedded or trailing space characters, are written with a preceding \. The key and value characters #, !, =, and : are written with a preceding slash to ensure that they are properly loaded. After the entries have been written, the output stream is flushed. The output stream remains open after this method returns.Parameters:out - an output stream.header - a description of the property list.Throws:IOException - if writing this property list to the specified output stream throws an IOException.ClassCastException - if this Properties object contains any keys or values that are not Strings.
      

  3.   

    规范针对不同的框架有不同的规范(比如Struts中的Application.properties),针对特定的文件进项解析
    并且自己可以定义自己使用的properties文件,只是一个文本,显示点信息而已,
      

  4.   

    大家都允许配置文简历这种写法?
    download_url=http\://localhost\:80/myweb/taskFiles
      

  5.   

    人家JAVA都不介意,也不会解析出错,就行了撒