提交可正常处理acft消息的代码

This commit is contained in:
zhouxiunai
2018-12-05 18:05:50 +08:00
parent 1b1207b07a
commit e19a281cb6
23 changed files with 567 additions and 34 deletions
@@ -3,14 +3,19 @@ package com.gzzn.omms.msgexchangeapi.msghandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gzzn.omms.msgexchangeapi.entity.msg.Msg;
import com.gzzn.omms.msgexchangeapi.service.IExchangeService;
import com.gzzn.omms.msgexchangeapi.utils.JsonUtil;
@Service
public class MsgHandlerDispatcher {
private Logger logger = LoggerFactory.getLogger(MsgHandlerDispatcher.class);
@Autowired
IExchangeService exchangeService;
@@ -34,7 +39,9 @@ public class MsgHandlerDispatcher {
| SecurityException
| IllegalArgumentException
| InvocationTargetException e) {
throw new RuntimeException(e);
//throw new RuntimeException(e);
logger.error("消息处理失败:{}",e.getMessage());
return HandlerResult.failure();
}
}//end function