my-csc-config-file.git лет назад: 5
Родитель
Сommit
a70a046e6b
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/main/java/com/unissoft/config/AuthorizationServerConfig.java

+ 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
     //    配置授权服务器端点