修改ExchangeService 抽象定义msg , xml ,json 间的转换
This commit is contained in:
@@ -37,7 +37,7 @@ public class KafkaController {
|
||||
kafkaservice.msgSend(topicName, msg);
|
||||
} catch (Exception e) {
|
||||
try {
|
||||
String jsonStr = exchangeService.xmlstrToJson(msg);
|
||||
String jsonStr = exchangeService.xmlMsgToJsonMsg(msg);
|
||||
kafkaservice.msgSend(topicName, jsonStr);
|
||||
} catch (Exception e2) {
|
||||
throw new RuntimeException(e2);
|
||||
|
||||
Reference in New Issue
Block a user