package com.kuyuntech.vrv.platform.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-platform.dubbo.enable:false}")
@Configuration
@EnableJpaRepositories(repositoryBaseClass = FastbootRepositoryImpl.class, basePackages = "com.kuyuntech.vrv.platform", transactionManagerRef = "${fastboot.restful.vrv-platform.transactionManager:vrvPlatformTransactionManager}", entityManagerFactoryRef = "${fastboot.restful.vrv-platform.entityManagerFactory:vrvPlatformEntityManagerFactory}")
@FastbootAutoDatasource(appName = "vrv-platform",entityPackages = {"com.kuyuntech.vrv.platform"})
@ComponentScan(basePackages = "com.kuyuntech.vrv.platform")
public class VrvPlatformConfiguration {

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

    }



}
