当前位置:网站首页>properties文件
properties文件
2022-07-06 05:58:00 【T_Y_F666】
properties文件
什么是properties文件:
后缀为properties文件,是一种属性文件。
文件信息存储特点
以<key,value>格式存储内容。
文件读取
Java中使用Properties类读取这类文件。
文件作用
往往程序中有很多信息,与程序本身无关,但是运行时候需要用到这些信息,因此就起个名字独立出来,待用时,程序通过代码把信息进行加载。由于加载的信息都是引用,因此日后想改变其中一个参数,只需在文件中改动相关信息就可。(便于代码重构,方便维护)
文件内容注释
properties文件中增加或者取消#注释,可以通过 Ctrl + / 实现。
可选中一行或多行内容进行操作,即可实现单行或多行内容的注释或取消注释。
原创不易
转载请标明出处
如果对你有所帮助 别忘啦点赞支持哈
边栏推荐
猜你喜欢
随机推荐
Station B, Master Liu Er - dataset and data loading
Introduction to promql of # yyds dry goods inventory # Prometheus
Clock in during winter vacation
[leetcode] day96 - the first unique character & ransom letter & letter ectopic word
Hongliao Technology: Liu qiangdong's "heavy hand"
Implementation of linked list in address book management system
My 2021
Query the standard text code corresponding to a work center (s) in the production order
《卓有成效的管理者》读书笔记
Amazon Engineer: eight important experiences I learned in my career
华为BFD的配置规范
Go language -- language constants
Arrays and collections
H3C V7版本交换机配置IRF
Usage of test macro of GTEST
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
AUTOSAR from getting started to becoming proficient (10) - embedded S19 file analysis
2022 software testing workflow to know
Processes and threads
Report on the competition status and investment decision recommendations of Guangxi hospital industry in China from 2022 to 2028




![[Jiudu OJ 08] simple search x](/img/a7/12a00c5d1db2deb064ff5f2e83dc58.jpg)




