Last active
April 9, 2023 15:07
-
-
Save sonus21/0c2711ecaa01e39cefee4eb629d41664 to your computer and use it in GitHub Desktop.
Database annotation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A Database annotation that should be used at controller,worker,consumer,methods or classes | |
* to route the database traffic to appropriate node. | |
*/ | |
@Retention(RetentionPolicy.RUNTIME) | |
@Target({ElementType.TYPE, ElementType.METHOD}) | |
public @interface Database { | |
String value() default ""; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment