![JAR search and dependency download from the Maven repository](/logo.png)
com.ruijc.shiro.annotation.EnableShiroWebSupport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-shiro Show documentation
Show all versions of spring-boot-starter-shiro Show documentation
Springboot自动化配置Shiro框架并加入一些新功能。
The newest version!
package com.ruijc.shiro.annotation;
import com.ruijc.shiro.ShiroWebMvcConfigurerAdapter;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;
import java.lang.annotation.*;
/**
* 自动配置SpringMVC框架
*
* @author Storezhang
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Inherited
@Import({EnableShiroWebSupport.ShiroWebMvcConfigurerAdapterImportSelector.class})
public @interface EnableShiroWebSupport {
class ShiroWebMvcConfigurerAdapterImportSelector implements ImportSelector {
public String[] selectImports(AnnotationMetadata importingClassMetadata) {
return new String[]{ShiroWebMvcConfigurerAdapter.class.getName()};
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy