add topic console

This commit is contained in:
许晓东
2021-09-08 21:18:12 +08:00
parent 0b81f40b3f
commit fad17302c8
10 changed files with 196 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
package com.xuxd.kafka.console.controller;
import com.xuxd.kafka.console.service.TopicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* kafka-console-ui.
*
* @author xuxd
* @date 2021-09-08 20:28:35
**/
@RestController
@RequestMapping("/topic")
public class TopicController {
@Autowired
private TopicService topicService;
@GetMapping("/list")
public Object getTopicList() {
return topicService.getTopicList();
}
}