package com.kuyuntech.vrv.coreservice.configuration.core;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import com.wbspool.fastboot.core.jpa.repository.FastbootRepositoryImpl;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import com.wbspool.fastboot.core.jpa.annotation.FastbootAutoDatasource;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import com.wbspool.fastboot.core.dubbo.configuration.FastbootDubboConfiguration;
import org.springframework.context.annotation.Import;





@ConditionalOnExpression("!${fastboot.comp.vrv-core-service.dubbo.enable:false}")
@Configuration
@ComponentScan(basePackages = "com.kuyuntech.vrv.coreservice")
@EnableJpaRepositories(repositoryBaseClass = FastbootRepositoryImpl.class, basePackages = "com.kuyuntech.vrv.coreservice", transactionManagerRef = "${fastboot.service.vrv-core-service.transactionManager:vrvCoreServiceTransactionManager}", entityManagerFactoryRef = "${fastboot.service.vrv-core-service.entityManagerFactory:vrvCoreServiceEntityManagerFactory}")
@FastbootAutoDatasource(appName = "vrv-core-service",entityPackages = {"com.kuyuntech.vrv.coreservice"})
public class VrvCoreServiceConfiguration {


    @ConditionalOnExpression("${fastboot.dubbo.enable:false}")
    @Import(FastbootDubboConfiguration.class)
    static class EnableDubbo{

    }


}
