Administrator01
V2EX  ›  问与答

切面记录 SQL 日志的正确姿势

  •  
  •   Administrator01 · Dec 23, 2019 · 2289 views
    This topic created in 2537 days ago, the information mentioned may be changed or developed.

    想问问大家对切面记录 SQL 日志,一般都会怎么操作

    3 replies  •  2019-12-23 11:25:00 +08:00
    tubimasky
    tubimasky
    Dec 23, 2019
    1
    log 等级
    log4jdbc 之类
    mybatis 拦截器
    Administrator01
    Administrator01
    OP
    Dec 23, 2019
    2
    @tubimasky 我们公司有一些自定义的框架,然后我想的是切面记录某个类执行的 SQL 到数据库中,但是这个量可能有点大 我又担心影响到性能
    tubimasky
    tubimasky
    Dec 23, 2019
    3
    @wqh0109663 #2 自定义一个注解 ?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2398 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 357ms · UTC 12:46 · PVG 20:46 · LAX 04:46 · JFK 07:46
    ♥ Do have faith in what you're doing.