refactor(接口测试): 修改监听的注解
This commit is contained in:
parent
72f22a6dd2
commit
54d45031fc
|
@ -7,13 +7,13 @@ import io.metersphere.sdk.util.LogUtils;
|
||||||
import io.metersphere.sdk.util.WebSocketUtils;
|
import io.metersphere.sdk.util.WebSocketUtils;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.kafka.clients.consumer.ConsumerRecord;
|
import org.apache.kafka.clients.consumer.ConsumerRecord;
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.kafka.annotation.KafkaListener;
|
import org.springframework.kafka.annotation.KafkaListener;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 后端调试消息监听器
|
* 后端调试消息监听器
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Component
|
||||||
public class DebugListener {
|
public class DebugListener {
|
||||||
public static final String DEBUG_CONSUME_ID = "MS-API-DEBUG-CONSUME";
|
public static final String DEBUG_CONSUME_ID = "MS-API-DEBUG-CONSUME";
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,10 @@ import jakarta.annotation.Resource;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.kafka.clients.consumer.ConsumerRecord;
|
import org.apache.kafka.clients.consumer.ConsumerRecord;
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.kafka.annotation.KafkaListener;
|
import org.springframework.kafka.annotation.KafkaListener;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@Configuration
|
@Component
|
||||||
public class MessageListener {
|
public class MessageListener {
|
||||||
public static final String MESSAGE_CONSUME_ID = "MS-API-MESSAGE-CONSUME";
|
public static final String MESSAGE_CONSUME_ID = "MS-API-MESSAGE-CONSUME";
|
||||||
@Resource
|
@Resource
|
||||||
|
|
Loading…
Reference in New Issue