官术网_书友最值得收藏!

Built-in converters

The MicroProfile Config implementation provides built-in converters for the primitive types (boolean, int, long, byte, float, and double) and their corresponding Java types (for example, Integer).

It also provides support for arrays in the property value using the "," as the item separator. If the "," must be part of an item, it must be escaped with a backslash "\":

private String[] pets = config.getValue("myPets", String[].class)

If the value of the myPets property is dog,cat,dog\\,cat, the elements of the array stored in pets would be {"dog", "cat", "dog,cat"}.

主站蜘蛛池模板: 嘉黎县| 隆昌县| 海安县| 汽车| 洛浦县| 岫岩| 潮州市| 武义县| 宜君县| 乐陵市| 康保县| 青神县| 磐石市| 昂仁县| 遂溪县| 林甸县| 汶川县| 永和县| 陇川县| 南平市| 独山县| 冀州市| 云和县| 武宣县| 基隆市| 宜州市| 紫阳县| 沿河| 新河县| 翼城县| 中方县| 什邡市| 雷波县| 阳东县| 当涂县| 嘉善县| 闵行区| 灯塔市| 安新县| 八宿县| 石阡县|