V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
binnny
V2EX  ›  问与答

springboot+mybatis 怎么获得 mapper 执行时获取到的连接?

  •  
  •   binnny · Sep 29, 2022 · 1382 views
    This topic created in 1305 days ago, the information mentioned may be changed or developed.
    想通过打印获得的连接信息,如端口,来配合网络包分析
    2 replies    2022-09-29 23:29:58 +08:00
    binnny
        1
    binnny  
    OP
       Sep 29, 2022
    这种问题直接搜索是找不到的,应该怎么反向寻找正确的提问
    urnoob
        2
    urnoob  
       Sep 29, 2022 via Android
    mapper 执行时的 jdbc 链接实力在当前线程的 threadlocal 里
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   982 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 22:56 · PVG 06:56 · LAX 15:56 · JFK 18:56
    ♥ Do have faith in what you're doing.