- Hands-On Enterprise Java Microservices with Eclipse MicroProfile
- Cesar Saavedra Heiko W. Rupp Jeff Mesnil Pavol Loffay Antoine Sabot Durand Scott Stark
- 97字
- 2021-06-24 12:56:22
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"}.
推薦閱讀
- CorelDRAW X6 中文版圖形設計實戰從入門到精通
- 面向物聯網的CC2530與傳感器應用開發
- 物聯網識別技術
- Twilio Cookbook
- 異構基因共表達網絡的分析方法
- 社交電商運營策略、技巧與實操
- Hands-On Chatbots and Conversational UI Development
- 計算機網絡與通信(第2版)
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- Getting Started with Grunt:The JavaScript Task Runner
- Metasploit Penetration Testing Cookbook
- 物聯網長距離無線通信技術應用與開發
- 物聯網工程導論(第3版)
- 無線傳感器網絡定位技術
- 沖擊:5G如何改變世界