mirror of
https://gitee.com/dromara/hmily.git
synced 2024-12-02 19:27:59 +08:00
add p6spy
This commit is contained in:
parent
05fc394e57
commit
0b86d2b59d
@ -18,7 +18,6 @@
|
||||
package org.dromara.hmily.tac.p6spy;
|
||||
|
||||
import com.p6spy.engine.event.JdbcEventListener;
|
||||
import com.p6spy.engine.spy.DefaultJdbcEventListenerFactory;
|
||||
import com.p6spy.engine.spy.JdbcEventListenerFactory;
|
||||
|
||||
/**
|
||||
@ -33,7 +32,7 @@ public class HmilyJdbcEventListenerFactory implements JdbcEventListenerFactory {
|
||||
@Override
|
||||
public JdbcEventListener createJdbcEventListener() {
|
||||
if (jdbcEventListener == null) {
|
||||
synchronized (DefaultJdbcEventListenerFactory.class) {
|
||||
synchronized (HmilyJdbcEventListenerFactory.class) {
|
||||
if (jdbcEventListener == null) {
|
||||
jdbcEventListener = new HmilyJdbcEventListener();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user