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

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"}.

主站蜘蛛池模板: 关岭| 邵阳县| 乌拉特前旗| 红安县| 论坛| 讷河市| 湘阴县| 宁强县| 依安县| 洛阳市| 商南县| 漾濞| 博湖县| 兴隆县| 喀喇沁旗| 兴隆县| 牡丹江市| 金寨县| 宜丰县| 洪洞县| 赣州市| 富锦市| 呼图壁县| 得荣县| 南平市| 芮城县| 玉树县| 嘉鱼县| 泊头市| 鹿邑县| 滦南县| 城口县| 龙井市| 泸西县| 余姚市| 仪征市| 乐业县| 阳曲县| 涡阳县| 平武县| 武安市|