Annotation Interface ContextConfigurer


@Documented @Retention(RUNTIME) @Target(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);
     }
 }
Since:
3.2