package com.tanpu.community.controller; import com.tanpu.community.manager.KafkaManager; import com.tanpu.community.service.UserInfoService; import com.tanpu.community.service.VisitSummaryService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @RestController @Slf4j @RequestMapping(value = "/api/test") public class TestController { @Autowired private KafkaManager kafkaManager; @Autowired private VisitSummaryService visitSummaryService; @Autowired private UserInfoService userInfoService; @GetMapping(value = "/1") @ResponseBody public Object sendKafka() { return userInfoService.queryUserById("USER_INFO15912897523789"); } }