Annotation Interface DS


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented public @interface DS
The core Annotation to switch datasource. It can be annotated at class or method.
Since:
1.0.0
Author:
TaoYu Kanyuxia
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    groupName or specific database name or spring SPEL name.
  • Element Details

    • value

      String value
      groupName or specific database name or spring SPEL name.
      Returns:
      the database you want to switch