22 lines
502 B
Plaintext
22 lines
502 B
Plaintext
package com.securityControl.common.datasource.annotation;
|
|
|
|
import java.lang.annotation.Documented;
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
|
/**
|
|
* 主库数据源
|
|
*
|
|
* @author czc
|
|
*/
|
|
@Target({ ElementType.TYPE, ElementType.METHOD })
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Documented
|
|
@DS("master")
|
|
public @interface Master
|
|
{
|
|
|
|
} |