依赖包
1 | <dependency> |
在 application.yml 中配置 StatFilter 相关
1 | debug: false |
关键配置是
1 | spring: |
慢 sql 日志
1 | 19-04-18 15:09:46 ERROR pool-2-thread-1 com.alibaba.druid.filter.stat.StatFilter.internalAfterStatementExecute(478) | slow sql 20 millis. select * from ( select token0_.id as id1_0_, token0_.curr as curr2_0_, token0_.ip as ip3_0_, token0_.serviceno as serviceno4_0_, token0_.ticket as ticket5_0_, token0_.token as token6_0_, token0_.vtime as vtime7_0_ from im_wx_token token0_ where token0_.curr=? and token0_.serviceno=? ) where rownum <= ?["1","gh_de5f1fdc39ec",1] |