mybatis druid postgresql statement超时原理原理
yaml设置超时
mybatis-plus:mapper-locations: classpath:/mapper/*.xml # MyBatis Mapper XML文件的位置type-aliases-package: com.company.mi.entity # 实体类所在的包configuration:default-statement-timeout: 10
configuration 设置超时

BaseStatementHandler设置超时



##PgStatement executeInternal方法启动 Timer定时任务 超时启动取消请求任务,取消任务达到时间发送取消给pg进程





##connection.addTimerTask 方法把取消任务放到定时调度线程



