{{/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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. */}}
Config Type | 配置格式参考 |
---|---|
Integer |
正则表达式:[-+]? [0-9]+ 示例: 100 |
Long |
正则表达式:[-+]? [0-9]+ 示例: 100 |
Float |
正则表达式:[-+]? ( \. [0-9]+ | [0-9]+ ( \. [0-9]* )? ) ( [eE] [-+]? [0-9]+ )? 示例: 100.1 |
Double |
正则表达式:[-+]? ( \. [0-9]+ | [0-9]+ ( \. [0-9]* )? ) ( [eE] [-+]? [0-9]+ )? 示例: 100.1 |
Boolean |
正则表达式:true | True | TRUE | false | False | FALSE 示例: true |
String |
任意字符 Note:如果 value 按字符串处理,且字符串中包含YAML中的 特殊字符, 则必须使用单引号或者双引号对其进行转义. |
Map<String, String> |
|
List |
|
MemorySize |
正则表达式:[0-9]+ (b | kb | kibibytes | m | mb | mebibytes | g | gb | gibibytes | t | tb | tebibytes)? 示例: 100 mb |
Boolean |
正则表达式:[0-9]+ (d | day | h | hour | m | min | minute | s | sec | second | ms | milli | millisecond | us | micro | microsecond | ns | nano | nanosecond)? 示例: 10 s |
Enum |
枚举类常量 |