Created
April 9, 2023 10:51
-
-
Save sonus21/1bf1e4f4d82e154d428014412e93b4f0 to your computer and use it in GitHub Desktop.
Database router
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
public class DatabaseRouter extends AbstractRoutingDataSource { | |
@Override | |
protected Object determineCurrentLookupKey() { | |
return DatabaseContext.get(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment