|
@@ -15,6 +15,7 @@ import org.apache.shiro.authz.SimpleAuthorizationInfo;
|
|
|
import org.apache.shiro.realm.AuthorizingRealm;
|
|
|
import org.apache.shiro.subject.PrincipalCollection;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.context.annotation.Scope;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -31,6 +32,7 @@ public class OAuth2Realm extends AuthorizingRealm {
|
|
|
private JwtUtil jwtUtil;
|
|
|
|
|
|
@Autowired
|
|
|
+ @Lazy
|
|
|
private UserService userService;
|
|
|
|
|
|
|