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

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

主站蜘蛛池模板: 汕头市| 治县。| 贵德县| 松江区| 微博| 马关县| 潮安县| 东丽区| 南投市| 桃源县| 肃南| 方城县| 曲麻莱县| 清远市| 江油市| 塘沽区| 襄垣县| 兰溪市| 湄潭县| 苏尼特右旗| 玉溪市| 红桥区| 廊坊市| 象山县| 东阳市| 盘山县| 伊通| 陈巴尔虎旗| 江永县| 鄂伦春自治旗| 英山县| 丁青县| 靖远县| 当雄县| 旺苍县| 台州市| 宣化县| 庄浪县| 溆浦县| 海淀区| 信宜市|