Package io.mats3.spring
Annotation Type EnableMats
-
@Target(TYPE) @Retention(RUNTIME) @Import(MatsSpringAnnotationRegistration.class) @Documented public @interface EnableMats
Enables Mats "SpringConfig", which is bean-scanning for methods on Spring beans annotated withMatsMapping,MatsClassMappingandMatsEndpointSetup, conceptually inspired by the @EnableWebMvc annotation. One (or several)MatsFactorys must be set up in the Spring context. Methods (or classes in case of @MatsClassMapping) having the specified annotations will get Mats endpoints set up for them on theMatsFactory.This annotation simply imports the
MatsSpringAnnotationRegistrationbean, which is a SpringBeanPostProcessor. Read more JavaDoc there!