Files
hutool/hutool-setting/src/test/resources/example/example.setting

33 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-09-21 18:08:54 +08:00
#
2024-08-04 22:21:03 +08:00
# Copyright (c) 2024 looly(loolly@aliyun.com)
2023-09-21 18:08:54 +08:00
# Hutool is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
# https://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
#
2021-01-20 17:10:45 +08:00
# -------------------------------------------------------------
# ----- Setting File with UTF8-----
# ----- 数据库配置文件 -----
# -------------------------------------------------------------
# 键值都支持中文默认UTF-8编码可以在new Setting的时候设置编码
key = value
#中括表示一个分组其下面的所有属性归属于这个分组在此分组名为demo也可以没有分组
#分组后的键值对在Setting对象中表现形式是demo.key也可以使用相应的方法取值
2022-04-30 20:59:02 +08:00
[demo]
2021-01-20 17:10:45 +08:00
# 类似于Properties的键值对
key = value
# 支持变量替换在new Setting的时候需要设置isUseVariable为true
key2 = value${key}
#中括号开始表示新的分组开始,分组相互独立,键值与其他分组互不影响
2022-04-30 21:04:05 +08:00
[demo2]
2021-01-20 17:10:45 +08:00
key = value2
2022-04-30 20:47:32 +08:00
key2 = value