@Documented @Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface ContextConfigurer
Annotation used to indicate the annotated class participates in the application context building phase. Annotating the class will make it visible to tooling which needs to inspect the application context.
@ContextConfigurer
public class Configurer implements ApplicationContextCustomizer {
@Override
public void customize(ApplicationContextBuilder builder) {
// configure the builder
builder.deduceEnvironment(false);
}
}