123456789101112131415161718192021222324 |
- //package com.gxzc.zen.mq.api
- //
- //import org.slf4j.LoggerFactory
- //import org.springframework.amqp.rabbit.annotation.RabbitListener
- //import org.springframework.stereotype.Component
- //
- ///**
- // *
- // * @author NorthLan
- // * @date 2018/1/31
- // * @url https://noahlan.com
- // */
- //@Component
- //class Receiver {
- // companion object {
- // val logger = LoggerFactory.getLogger(Receiver::class.java)!!
- // }
- //
- // @RabbitListener(queues = ["q1"])
- // fun processMessage(msg: String): String {
- // logger.info("接收到来自q1的消息:{}", msg)
- // return msg
- // }
- //}
|