All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.gybyt.annotation.EnableDynamicDataSource Maven / Gradle / Ivy

The newest version!
package cn.gybyt.annotation;

import cn.gybyt.config.GybytDynamicDataSourceConfig;
import cn.gybyt.config.properties.GybytDynamicProperties;
import cn.gybyt.dynamic.GybytDataSourceAspect;
import cn.gybyt.dynamic.GybytDynamicDataSourceRoute;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 开启动态数据源
 *
 * @program: ApiClumps
 * @classname: EnableDynamicDataSource
 * @author: codetiger
 * @create: 2023/9/2 16:05
 **/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import({GybytDynamicDataSourceConfig.class, GybytDynamicProperties.class, GybytDataSourceAspect.class})
public @interface EnableDynamicDataSource {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy