修改ExchangeService 抽象定义msg , xml ,json 间的转换

This commit is contained in:
zhouxiunai
2019-01-08 14:56:52 +08:00
parent 6b4fb1ac60
commit f4613f219e
11 changed files with 136 additions and 14 deletions
@@ -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);