金币系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
458 B

  1. //package com.example.demo.controller;
  2. //
  3. //import org.springframework.beans.factory.annotation.Autowired;
  4. //import org.springframework.kafka.core.KafkaTemplate;
  5. //import org.springframework.stereotype.Service;
  6. //
  7. //@Service
  8. //public class KafkaProducer {
  9. //
  10. // @Autowired
  11. // private KafkaTemplate<String, String> kafkaTemplate;
  12. //
  13. // public void sendMessage(String topic, String message) {
  14. // kafkaTemplate.send(topic, message);
  15. // }
  16. //}