perf: 修改获取接口子类的方式

This commit is contained in:
CaptainB 2022-04-21 16:29:15 +08:00 committed by 刘瑞斌
parent 5f4be44e4e
commit 5ec7985089
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
package io.metersphere.commons.consumer;
import com.alibaba.fastjson.JSON;
import io.metersphere.Application;
import io.metersphere.base.domain.LoadTestReport;
import io.metersphere.commons.utils.CommonBeanFactory;
import io.metersphere.commons.utils.LogUtil;
@ -40,7 +39,7 @@ public class LoadTestConsumer implements ApplicationRunner {
if (subTypes != null) {
return subTypes;
}
Reflections reflections = new Reflections(Application.class);
Reflections reflections = new Reflections("io.metersphere");
subTypes = reflections.getSubTypesOf(LoadTestFinishEvent.class);
return subTypes;
}