1. 明点软件
  2. Untitled project
  3. Grails Spring Security Taobao

Commits

Liang Yong Rui  committed 11d0fc7

修复错误提示

  • Participants
  • Parent commits 757f571
  • Branches default

Comments (0)

Files changed (1)

File SpringSecurityTaobaoGrailsPlugin.groovy

View file
     }
 
     def doWithApplicationContext = { applicationContext ->
+        def userDetailsService = applicationContext.getBean('taobaoAuthenticationUserDetailsService')
+        if(!(userDetailsService instanceof TaobaoAuthenticationUserDetailsService)) {
+            return  
+        }
         def conf = SpringSecurityUtils.securityConfig
         if (!conf || !conf.active) {
             return