Helius
2021-05-21 d2847c8e9ee9296ee1f318abd2113275dd50f020
src/main/java/com/xcong/excoin/rabbit/consumer/OtcConsumer.java
@@ -3,10 +3,12 @@
import com.xcong.excoin.configurations.RabbitMqConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
@Slf4j
@Component
@ConditionalOnProperty(prefix = "app", name = "otc-job", havingValue = "true")
public class OtcConsumer {