牛长青
2016-04-27 03:49camel怎么向mina:tcp中发送消息
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并没有监听到任何数据,求大神告知下
- 点赞
- 回答
- 收藏
- 复制链接分享
0条回答
为你推荐
- Go JSON元帅的默认案例选项?
- json
- 2个回答
- 功能的命名约定
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 2个回答
- 空中刹车抛出错误“ pybrake-ERROR-strconv.ParseInt:解析为“ None”:语法无效”
- django
- python
- logging
- 1个回答
- 在跳过缩写时,将camel case格式化为可在PHP中读取
- regex
- php
- 2个回答
- PDO + Angular:如何使用Angular的camelCase协调DB underscore_case?
- angularjs
- pdo
- php
- 2个回答
换一换