public void transformService1(Exchange exchange, @Body @Encoded String body,
@Header(value = "Content-Type") String contentType)
throws IOException {
LOGGER.info("body is:" + body);
System.out.println("测试测试");
//如果不是json数据,会被过滤掉
System.out.println(body);
//MessageVO msg = objectMapper.readValue(body, MessageVO.class);
// 转换为新的格式 form 方式
// UriMap map = new UriMap();
/*map.put("msgId", msg.getMsgId());
map.put("msgType", msg.getMsgtype());*/
exchange.getOut().setBody("====");
}
当我方法走完,mina:tcp://127.0.0.1:60000并没有监听到任何数据,求大神告知下