cn.echo.sharding.annotation.HintMasterRoute Maven / Gradle / Ivy
The newest version!
package cn.echo.sharding.annotation;
import java.lang.annotation.*;
/**
* 强制master数据源
* @author lonyee
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface HintMasterRoute {
/**
* 是否强制主库
* @return
*/
boolean isMasterOnly() default true;
}