diff --git a/11.Spring-Boot-Shiro-Authentication/src/main/java/com/springboot/config/ShiroConfig.java b/11.Spring-Boot-Shiro-Authentication/src/main/java/com/springboot/config/ShiroConfig.java index 865603cf..61d7bb86 100644 --- a/11.Spring-Boot-Shiro-Authentication/src/main/java/com/springboot/config/ShiroConfig.java +++ b/11.Spring-Boot-Shiro-Authentication/src/main/java/com/springboot/config/ShiroConfig.java @@ -3,7 +3,6 @@ import java.util.LinkedHashMap; import org.apache.shiro.mgt.SecurityManager; -import org.apache.shiro.spring.LifecycleBeanPostProcessor; import org.apache.shiro.spring.web.ShiroFilterFactoryBean; import org.apache.shiro.web.mgt.DefaultWebSecurityManager; import org.springframework.context.annotation.Bean; @@ -45,11 +44,6 @@ public SecurityManager securityManager(){ return securityManager; } - @Bean(name = "lifecycleBeanPostProcessor") - public LifecycleBeanPostProcessor lifecycleBeanPostProcessor() { - return new LifecycleBeanPostProcessor(); - } - @Bean public ShiroRealm shiroRealm(){ ShiroRealm shiroRealm = new ShiroRealm();