Hint
- Call
HintManager.setWriteRouteOnly()
method to set the primary database routing marks. - Execute SQL statements to complete routing and execution.
- Call
HintManager.close()
to clear the content of ThreadLocal.
Use manual programming
Get HintManager
Configure Primary Database Route
- Use to configure primary database route.
Clean Hint Value
Codes:
Use special SQL comments
Terms of Use
Codes:
SELECT * FROM t_order;