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
16 lines
458 B
//package com.example.demo.controller;
|
|
//
|
|
//import org.springframework.beans.factory.annotation.Autowired;
|
|
//import org.springframework.kafka.core.KafkaTemplate;
|
|
//import org.springframework.stereotype.Service;
|
|
//
|
|
//@Service
|
|
//public class KafkaProducer {
|
|
//
|
|
// @Autowired
|
|
// private KafkaTemplate<String, String> kafkaTemplate;
|
|
//
|
|
// public void sendMessage(String topic, String message) {
|
|
// kafkaTemplate.send(topic, message);
|
|
// }
|
|
//}
|