- Hands-On Enterprise Java Microservices with Eclipse MicroProfile
- Cesar Saavedra Heiko W. Rupp Jeff Mesnil Pavol Loffay Antoine Sabot Durand Scott Stark
- 87字
- 2021-06-24 12:56:22
Automatic converters
MicroProfile Config also defines automatic converters. If a converter is not known for a given Java type, it will attempt to convert a String object into it using any one of the three different approaches:
- The Java type has a public constructor with a String parameter.
- It has a public static valueOf(String) method.
- It has a public static parse(String) method.
That's how the my.url property was converted from String into URL since the java.net.URL type has the public URL(String) constructor.
推薦閱讀
- Mastering Node.js(Second Edition)
- 6G潛在關鍵技術(下冊)
- Building RESTful Web Services with Spring 5(Second Edition)
- PLC、現場總線及工業網絡實用技術速成
- 數字通信同步技術的MATLAB與FPGA實現:Altera/Verilog版(第2版)
- 物聯網與無線傳感器網絡
- 企業網絡安全管理
- CCNP TSHOOT(642-832)認證考試指南
- AIoT應用開發與實踐
- 設備監控技術詳解
- 網絡空間全球治理觀察
- Hands-On Docker for Microservices with Python
- 工業以太網技術:AFDX/TTE網絡原理、接口、互連與安全
- 區塊鏈技術與應用:打造分布式商業新生態
- 黑客與反黑工具使用詳解