@Target(value=TYPE) @Retention(value=RUNTIME) @SpringBootConfiguration public @interface BootstrapConfiguration
BootstrapConfiguration
is the main entry point for executing tapir tests. By default it enables Spring Boot's
auto-configuration and enables component scan.
The component scan searches for Spring components which are located in the package (or subpackages) of the class annotated by BootstrapConfiguration
.
It's possible to deactivate this behaviour by setting componentScan()
and/or autoConfigure()
to false. If the component scan is activated, a filter is generated
automatically for the NoScan annotation. Moreover the annotation checks if the annotated class is already annotated by ComponentScan
and/or EnableAutoConfiguration
and
skips the generation if it's already present. The generated tapir.factories points to the annotated class.Modifier and Type | Optional Element and Description |
---|---|
boolean |
autoConfigure
If set to false the
EnableAutoConfiguration annotation is not generated. |
boolean |
componentScan
If set to false the
ComponentScan annotation is not generated. |
boolean |
generateTapirFactories
If set to false the tapir.factories file is not generated.
|
public abstract boolean componentScan
ComponentScan
annotation is not generated.Copyright © 2018–2021 b+m Informatik AG. All rights reserved.