/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.db.config;

import com.codvision.db.versionctl.DbVersionCtlInitializer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 数据源模块配置
 *
 * @author lingee
 * @date 2023/12/5
 */
@Slf4j
@Configuration
@ImportAutoConfiguration(DBVCTLProps.class)
public class DBConfig {

    @Bean("dbVersionCtlInitializer")
    public DbVersionCtlInitializer init() {
        return new DbVersionCtlInitializer();
    }
}
