Pārlūkot izejas kodu

改回数据库

my-csc-config-file.git 5 gadi atpakaļ
vecāks
revīzija
a70a046e6b

+ 4 - 4
src/main/java/com/unissoft/config/AuthorizationServerConfig.java

@@ -39,8 +39,8 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
39 39
      */
40 40
     @Autowired
41 41
     private AuthenticationManager authenticationManager;
42
-//    @Autowired
43
-//    private DataSource dataSource;
42
+    @Autowired
43
+    private DataSource dataSource;
44 44
     @Autowired
45 45
     private RedisConnectionFactory redisConnectionFactory;
46 46
     @Autowired
@@ -76,9 +76,9 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
76 76
     @Bean
77 77
     public TokenStore tokenStore() {
78 78
         // 存入数据库
79
-//        return new JdbcTokenStore(dataSource);
79
+        return new JdbcTokenStore(dataSource);
80 80
         //  存入redis
81
-        return new RedisTokenStore(redisConnectionFactory);
81
+//        return new RedisTokenStore(redisConnectionFactory);
82 82
     }
83 83
 
84 84
     //    配置授权服务器端点