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

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

主站蜘蛛池模板: 宁陵县| 静宁县| 定南县| 休宁县| 武鸣县| 宁远县| 南昌县| 宝兴县| 新蔡县| 蒙城县| 广昌县| 齐河县| 盘锦市| 崇文区| 南投县| 西平县| 北川| 奈曼旗| 盐山县| 庆元县| 阜南县| 闵行区| 盐津县| 东港市| 常德市| 永兴县| 合山市| 富阳市| 栾城县| 黄冈市| 惠水县| 观塘区| 宽城| 瑞金市| 泸州市| 东乡| 永嘉县| 黎平县| 温泉县| 即墨市| 石屏县|