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"}.
推薦閱讀
- 黑客攻防實戰技術完全手冊:掃描、嗅探、入侵與防御
- Cisco OSPF命令與配置手冊
- Spring Boot 2.0 Projects
- 社交電商運營策略、技巧與實操
- 計算機網絡安全實訓教程(第二版)
- 區塊鏈輕松上手:原理、源碼、搭建與應用
- 數字調制解調技術的MATLAB與FPGA實現:Altera/Verilog版(第2版)
- 端到端QoS網絡設計
- 網絡AI+:2030后的未來網絡
- 一本書讀懂物聯網
- INSTANT LinkedIn Customization How-to
- INSTANT Social Media Marketing with HootSuite
- 結網@改變世界的互聯網產品經理(修訂版)
- 互聯網心理學:新心理與行為研究的興起
- 網絡安全和信息化黨政領導干部一本通