com.wu.framework.easy.upsert.QuickEasyUpsertMySQL Maven / Gradle / Ivy
package com.wu.framework.easy.upsert;
import com.wu.framework.easy.upsert.autoconfigure.dynamic.QuickEasyUpsert;
import com.wu.framework.easy.upsert.autoconfigure.enums.EasyUpsertType;
import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Indexed;
import java.lang.annotation.*;
/**
* description 自定义快速一数据源切换(Kafka、MySQL多数据源-mybatis)
*
* @param
* @author Jia wei Wu
* @return
* @exception/throws
* @date 2020/9/11 上午9:17
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Indexed
@EasyUpsertMySQL
@QuickEasyUpsert
public @interface QuickEasyUpsertMySQL {
/**
* 数据源名称(MYSQL多数据源有效)
*
* @return
*/
@AliasFor(attribute = "value", annotation = EasyUpsertMySQL.class)
String value() default "";
@AliasFor(attribute = "value", annotation = EasyUpsertMySQL.class)
String name() default "";
/**
* 数据源类型 默认MySQL
*/
@AliasFor(attribute = "type", annotation = QuickEasyUpsert.class)
EasyUpsertType type() default EasyUpsertType.AUTO;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy