REQ-3284: 查询数量过大告警
This commit is contained in:
parent
5d26dcb614
commit
7ac2bc9042
@ -2,7 +2,7 @@ package cn.axzo.msg.center.message.service.todo.mybatis;
|
||||
|
||||
import cn.axzo.msg.center.inside.notices.config.DiagnosisProps;
|
||||
import cn.axzo.msg.center.inside.notices.config.PendingMessageBizConfig;
|
||||
import cn.axzo.msg.center.message.service.todo.mybatis.rowcountwarn.ResultCountInterceptor;
|
||||
import cn.axzo.msg.center.message.service.todo.mybatis.rowcountwarn.RowCountInterceptor;
|
||||
import org.springframework.beans.factory.ListableBeanFactory;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
@ -21,9 +21,9 @@ public class SqlInterceptorConfig {
|
||||
}
|
||||
|
||||
@Bean
|
||||
ResultCountInterceptor resultCountInterceptor(DiagnosisProps props,
|
||||
ListableBeanFactory beanFactory) {
|
||||
return new ResultCountInterceptor(props, beanFactory);
|
||||
RowCountInterceptor resultCountInterceptor(DiagnosisProps props,
|
||||
ListableBeanFactory beanFactory) {
|
||||
return new RowCountInterceptor(props, beanFactory);
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
@ -21,7 +21,7 @@ import java.sql.Statement;
|
||||
args = {Connection.class, Integer.class})
|
||||
})
|
||||
@RequiredArgsConstructor
|
||||
public class ResultCountInterceptor implements Interceptor {
|
||||
public class RowCountInterceptor implements Interceptor {
|
||||
|
||||
private final DiagnosisProps props;
|
||||
private final ListableBeanFactory beanFactory;
|
||||
Loading…
Reference in New Issue
Block a user