Package io.quarkus.runtime.annotations
Annotation Interface QuarkusMain
The default main class of a Quarkus application.
There are two different ways this annotation can be used. The first is to place it
on a class with a Java main method. This main method will be the default entry point of
the application. Note that Quarkus will not be started when this method is called,
this method must launch Quarkus with the
Quarkus.run(Class, String...)
method.
Alternatively this annotation can be placed on an QuarkusApplication
implementation. In this case a main method is automatically generated that will automatically
call Quarkus.run(Class, String...)
with the provided application.
Note that this can be overridden by the presence of the quarkus.package.main-class
configuration key. If this configuration key is used it can either specify the fully qualified
name of a class with a Java main method, the fully qualified name of a QuarkusApplication
,
or the name as given by name()
.-
Optional Element Summary
-
Element Details
-
name
String nameThe name of this main method, which must be unique.- Default:
- ""
-