Receiver.kt 594 B

123456789101112131415161718192021222324
  1. //package com.gxzc.zen.mq.api
  2. //
  3. //import org.slf4j.LoggerFactory
  4. //import org.springframework.amqp.rabbit.annotation.RabbitListener
  5. //import org.springframework.stereotype.Component
  6. //
  7. ///**
  8. // *
  9. // * @author NorthLan
  10. // * @date 2018/1/31
  11. // * @url https://noahlan.com
  12. // */
  13. //@Component
  14. //class Receiver {
  15. // companion object {
  16. // val logger = LoggerFactory.getLogger(Receiver::class.java)!!
  17. // }
  18. //
  19. // @RabbitListener(queues = ["q1"])
  20. // fun processMessage(msg: String): String {
  21. // logger.info("接收到来自q1的消息:{}", msg)
  22. // return msg
  23. // }
  24. //}