package com.didispace.scca.service.persistence.git;

import com.didispace.scca.core.service.PersistenceService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by 程序猿DD/翟永超 on 2018/5/2.
 * <p>
 * Blog: http://blog.didispace.com/
 * Github: https://github.com/dyc87112/
 */
@Configuration
public class SccaGitConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public PersistenceService persistenceService() {
        return new GitPersistenceService();
    }

}
