Properties

xiaoxiao2021-02-28  153

使用Properties类读取配置文件:

优势:能够脱离程序本身去修改相关的变量设置

Properties配置文件:由键—值对组成

读取配置文件:使用Properties类相应方法

Java中的配置文件常为Properties文件:

后缀为.properties

个试试“键=值”格式

使用“#”来注释

转载请注明原文地址: https://www.6miu.com/read-39119.html

最新回复(0)