Hint

    1. Call HintManager.setWriteRouteOnly() method to set the primary database routing marks.
    2. Execute SQL statements to complete routing and execution.
    3. 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:
    1. SELECT * FROM t_order;