DS.java 477 B

123456789101112131415161718192021
  1. package com.zsElectric.openapi.common.annotation;
  2. import java.lang.annotation.*;
  3. /**
  4. * 数据源切换注解
  5. * 用于在方法或类级别指定使用哪个数据源
  6. *
  7. * @author Ray.Hao
  8. */
  9. @Target({ElementType.METHOD, ElementType.TYPE})
  10. @Retention(RetentionPolicy.RUNTIME)
  11. @Documented
  12. public @interface DS {
  13. /**
  14. * 数据源名称
  15. * 可选值: openapi(开放平台数据库), business(业务系统数据库)
  16. */
  17. String value() default "openapi";
  18. }