添加swaggerui 描述文档。

This commit is contained in:
zhouxiunai
2018-11-28 16:51:42 +08:00
parent 7fb816ddf8
commit 799544ff9c
31166 changed files with 643334 additions and 0 deletions
@@ -0,0 +1,23 @@
package com.gzzn.omms.msgexchangeapi.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.gzzn.omms.msgexchangeapi.dto.ResponseDto;
@RestController
@RequestMapping("/cminmsgs")
public class CminmsgsController {
/***
* 发送消息到Cminmsgs数据库表
* @param msg
* @param topic
* @return
*/
@GetMapping(value = "/send")
public ResponseDto send(String msg,String topic) {
return ResponseDto.success();
}
}
@@ -14,6 +14,12 @@ public class KafkaController {
@Autowired
private IKafkaService kafkaservice;
/**
* 发送消息到kafka指定topic上
* @param msg
* @param topic
* @return
*/
@GetMapping(value = "/send")
public ResponseDto sendKafka(String msg,String topic) {
kafkaservice.msgSend(topic, msg);