Package io.micronaut.spring.boot.starter
Annotation Interface EnableMicronaut
@Retention(RUNTIME)
@Target({TYPE,ANNOTATION_TYPE})
@Import(MicronautImportRegistrar.class)
public @interface EnableMicronaut
Annotation that can be added to a Spring application case in the case where auto-configuration is disabled.
- Since:
- 4.3.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Used to allow to expose beans from the Spring to the Micronaut context. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionDefines one or more types that represent Spring beans that should be exposed to the Micronaut context.Class<? extends MicronautBeanFilter>
A filter to apply to exclude or include specific bean types from being exposed as Spring beans.
-
Element Details
-
filter
Class<? extends MicronautBeanFilter> filterA filter to apply to exclude or include specific bean types from being exposed as Spring beans.- Returns:
- The bean filter
- Default:
- io.micronaut.spring.boot.starter.MicronautBeanFilter.class
-
exposeToMicronaut
EnableMicronaut.ExposedBean[] exposeToMicronautDefines one or more types that represent Spring beans that should be exposed to the Micronaut context.Note care should be taken that circular dependencies are not introduced between the Spring context and the Micronaut context
- Returns:
- The exposed bean.
- Default:
- {}
-