cn.tenfell.tools.nocontroller.config.NoControllerRegistrar Maven / Gradle / Ivy
The newest version!
package cn.tenfell.tools.nocontroller.config;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.core.type.AnnotationMetadata;
import cn.tenfell.tools.nocontroller.annotation.EnableControllerFree;
public class NoControllerRegistrar implements ImportBeanDefinitionRegistrar {
@Override
public void registerBeanDefinitions(AnnotationMetadata annotationMetadata, BeanDefinitionRegistry beanDefinitionRegistry) {
AnnotationAttributes annotationAttributes = AnnotationAttributes.fromMap(annotationMetadata.getAnnotationAttributes(EnableControllerFree.class.getName()));
NoControllerConfiguration.key = annotationAttributes.getString("key");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy