4
4
5
5
import org .apache .shiro .codec .Base64 ;
6
6
import org .apache .shiro .mgt .SecurityManager ;
7
- import org .apache .shiro .spring .LifecycleBeanPostProcessor ;
8
7
import org .apache .shiro .spring .security .interceptor .AuthorizationAttributeSourceAdvisor ;
9
8
import org .apache .shiro .spring .web .ShiroFilterFactoryBean ;
10
9
import org .apache .shiro .web .mgt .CookieRememberMeManager ;
11
10
import org .apache .shiro .web .mgt .DefaultWebSecurityManager ;
12
11
import org .apache .shiro .web .servlet .SimpleCookie ;
13
- import org .springframework .aop .framework .autoproxy .DefaultAdvisorAutoProxyCreator ;
14
12
import org .springframework .context .annotation .Bean ;
15
13
import org .springframework .context .annotation .Configuration ;
16
14
import org .springframework .context .annotation .DependsOn ;
@@ -51,10 +49,6 @@ public SecurityManager securityManager(){
51
49
return securityManager ;
52
50
}
53
51
54
- @ Bean (name = "lifecycleBeanPostProcessor" )
55
- public LifecycleBeanPostProcessor lifecycleBeanPostProcessor () {
56
- return new LifecycleBeanPostProcessor ();
57
- }
58
52
59
53
@ Bean
60
54
public ShiroRealm shiroRealm (){
@@ -74,14 +68,6 @@ public CookieRememberMeManager rememberMeManager() {
74
68
cookieRememberMeManager .setCipherKey (Base64 .decode ("4AvVhmFLUs0KTA3Kprsdag==" ));
75
69
return cookieRememberMeManager ;
76
70
}
77
-
78
- @ Bean
79
- @ DependsOn ({"lifecycleBeanPostProcessor" })
80
- public DefaultAdvisorAutoProxyCreator advisorAutoProxyCreator () {
81
- DefaultAdvisorAutoProxyCreator advisorAutoProxyCreator = new DefaultAdvisorAutoProxyCreator ();
82
- advisorAutoProxyCreator .setProxyTargetClass (true );
83
- return advisorAutoProxyCreator ;
84
- }
85
71
86
72
@ Bean
87
73
public AuthorizationAttributeSourceAdvisor authorizationAttributeSourceAdvisor (SecurityManager securityManager ) {
0 commit comments