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

cn.vonce.sql.spring.annotation.EnableAutoConfigMultiDataSource Maven / Gradle / Ivy

Go to download

This is a tool that uses java object-oriented idea to write and generate SQL statements. On this basis, it also implements lightweight plug-in support similar to JPA for mybatis and spring JDBC. A large number of common SQL execution methods are built in plug-ins to improve development efficiency, reduce a large number of SQL statement writing, and make developers focus on business code writing.

The newest version!
package cn.vonce.sql.spring.annotation;

import cn.vonce.sql.spring.config.AutoConfigMultiDataSource;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 启用自动配置多数据源
 *
 * @author Jovi
 * @version 1.0
 * @email [email protected]
 * @date 2021/7/7 17:00
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(AutoConfigMultiDataSource.class)
public @interface EnableAutoConfigMultiDataSource {

    /**
     * 多数据源名称常量类
     *
     * @return
     */
    Class multiDataSource();

    /**
     * 默认数据源名称
     *
     * @return
     */
    String defaultDataSource() default "";

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy