我的一个git repo很大,其中包含以前提交的大量资产。
以某种方式,我能够使用@Configuration
public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdapter {
@Override
public void configure(final AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
endpoints
// ...
.tokenServices(tokenServices(endpoints));
}
public AuthorizationServerTokenServices tokenServices(final AuthorizationServerEndpointsConfigurer endpoints) {
final DefaultTokenServices tokenServices = new DefaultTokenServices();
tokenServices.setTokenStore(endpoints.getTokenStore());
tokenServices.setClientDetailsService(endpoints.getclientDetailsService());
tokenServices.setTokenEnhancer(endpoints.getTokenEnhancer());
// ...
tokenServices.setauthenticationmanager(
new ProviderManager(List.of(new MyCustomAuthProvider())));
return tokenServices;
}
}
克隆repo(使其成为可运行的)。
我想在同一本地存储库上获得所有先前的提交。
谢谢。