Configuring Your Quarkus Applications
Total Page:16
File Type:pdf, Size:1020Kb
Red Hat build of Quarkus 1.11 Configuring your Quarkus applications Last Updated: 2021-06-15 Red Hat build of Quarkus 1.11 Configuring your Quarkus applications Legal Notice Copyright © 2021 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/ . In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract This guide describes how to configure Quarkus applications. Table of Contents Table of Contents .P .R . E. .F . A. .C . E. 3. .P .R . O. V. .I D. .I N. .G . F. .E .E . D. .B . A. .C . K. O. .N . R. .E .D . .H . .A .T . .D . O. C. .U . M. E. .N . T. .A .T . I.O . .N . .4 . .M . A. .K . I.N . .G . .O . P. .E . N. S. .O . U. .R . C. .E . .M . .O . R. .E . .I N. .C . L. .U . S. .I V. .E . 5. .C . H. .A . P. .T .E . R. 1.. .R . E. .D . .H . A. .T . .B . U. .I L. .D . .O . F. Q. .U . .A . R. K. .U . S. C. .O . .N . F. .I G. .U . R. .A . T. .I O. .N . O. .P . T. .I O. .N . .S . 6. .C . H. .A . P. .T .E . R. 2. C. .R . E. .A . T. .I N. .G . T . H. .E . .C . O. N. .F . I.G . U. .R . A. .T . I.O . .N . .Q . U. .I C. .K . S. .T . A. .R . T. .P . R. .O . .J .E . C. .T . 7. .C . H. .A . P. .T .E . R. 3. G. E. .N . E. .R .A . T. .I N. G. A. .N . .E . X. .A . M. P. .L .E . .C . O. .N . .F .I .G . U. .R . A. .T . I.O . N. .F .I L. .E . .F .O . .R . .Y . O. .U . R. Q. .U . .A . R. K. .U . S. A. .P . P. .L .I .C . A. .T .I .O . N. 8. .C . H. .A . P. .T .E . R. 4. .I N. .J . E. .C . T. I.N . .G . .C . O. N. .F . I.G . U. .R . A. .T . I.O . .N . .V . A. .L .U . E. .S . .I N. .T . O. Y. .O . .U . R. Q. .U . A. .R . K. .U . S. A. .P . P. .L .I C. .A . T. .I O. N. 9. 4.1. ANNOTATING A CLASS WITH @CONFIGPROPERTIES 10 4.2. USING NESTED OBJECT CONFIGURATION 13 4.3. ANNOTATING AN INTERFACE WITH @CONFIGPROPERTIES 15 .C . H. .A . P. .T .E . R. 5. A. .C . C. E. S. .S . I.N . G. .T .H . E. C. .O . .N . F. .I G. .U . R. .A . T. .I O. .N . F. R. .O . .M . C . .O . D. .E . 1.8 . .C . H. .A . P. .T .E . R. 6. .S .E . T. .T .I .N . G. C. .O . .N . F. .I G. .U . R. .A . T. .I O. N. P. .R . O. .P . E. .R . T. I.E . S. 1.9 . .C . H. .A . P. .T .E . R. 7. P. .R . O. P. .E .R . T. .Y . .E .X . P. .R . E. .S . S. I. O. .N . S. 2. .1 . 7.1. EXAMPLE USAGE OF PROPERTY EXPRESSIONS 21 .C . H. .A . P. .T .E . R. 8. .U . S. I. N. .G . .C . O. N. .F . I.G . U. .R . A. .T . I.O . .N . .P . R. .O . F. .I L. .E .S . .2 . 3. 8.1. SETTING A CUSTOM CONFIGURATION PROFILE 23 .C . H. .A . P. .T .E . R. 9. .S .E . T. .T .I .N . G. C. .U . S. .T . O. .M . C. .O . .N . F. .I G. .U . R. .A . T. .I O. .N . S. O. U. .R . C. .E . S. .2 . 5. ..