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.
34 lines
815 B
34 lines
815 B
package com.example.demokafka.controller;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.example.demokafka.model.Person;
|
|
import com.example.demokafka.util.Kafka;
|
|
import io.swagger.annotations.*;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* @author 赵恒
|
|
* @date 2023/5/11
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/test")
|
|
@Slf4j
|
|
@Api(tags = "测试")
|
|
public class TestController {
|
|
|
|
@GetMapping("/kafka01")
|
|
@ApiOperation(value = "kafka01")
|
|
public List<Person> kafka01() {
|
|
new Kafka().start();
|
|
return new ArrayList<>();
|
|
}
|
|
}
|