Administrator01
V2EX  ›  问与答

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

  •  
  •   Administrator01 · Dec 23, 2019 · 2252 views
    This topic created in 2517 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   ·   2147 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 13:56 · PVG 21:56 · LAX 05:56 · JFK 08:56
    ♥ Do have faith in what you're doing.