Files
hutool/hutool-setting/src/test/resources/example/example.setting
2025-01-01 23:44:09 +08:00

37 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# Copyright (c) 2013-2025 Hutool Team and hutool.cn
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# -------------------------------------------------------------
# ----- Setting File with UTF8-----
# ----- 数据库配置文件 -----
# -------------------------------------------------------------
# 键值都支持中文默认UTF-8编码可以在new Setting的时候设置编码
key = value
#中括表示一个分组其下面的所有属性归属于这个分组在此分组名为demo也可以没有分组
#分组后的键值对在Setting对象中表现形式是demo.key也可以使用相应的方法取值
[demo]
# 类似于Properties的键值对
key = value
# 支持变量替换在new Setting的时候需要设置isUseVariable为true
key2 = value${key}
#中括号开始表示新的分组开始,分组相互独立,键值与其他分组互不影响
[demo2]
key = value2
key2 = value