spring: | spring: | ||||
application: | application: | ||||
name: ats | |||||
name: ats-local | |||||
mvc: | mvc: | ||||
locale: zh_CN | locale: zh_CN | ||||
messages: | messages: |
response.setMsg(e.getMessage()); | response.setMsg(e.getMessage()); | ||||
return onFailed(request, response, YgzInterfaceLog.class, System.currentTimeMillis() - begin, e.getMessage()); | return onFailed(request, response, YgzInterfaceLog.class, System.currentTimeMillis() - begin, e.getMessage()); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
logger.error("YGZ系统异常:{}", e.getMessage()); | |||||
logger.error("YGZ系统异常:", e); | |||||
throw exception(request, YgzInterfaceLog.class, e.getMessage()); | throw exception(request, YgzInterfaceLog.class, e.getMessage()); | ||||
} | } | ||||
} | } |
response.setMsg(e.getMessage()); | response.setMsg(e.getMessage()); | ||||
return onFailed(request, response, YgzInterfaceLog.class, System.currentTimeMillis() - begin, e.getMessage()); | return onFailed(request, response, YgzInterfaceLog.class, System.currentTimeMillis() - begin, e.getMessage()); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
logger.error("YGZ系统异常:{}", e.getMessage()); | |||||
logger.error("YGZ系统异常:", e); | |||||
throw exception(request, YgzInterfaceLog.class, e.getMessage()); | throw exception(request, YgzInterfaceLog.class, e.getMessage()); | ||||
} | } | ||||
} | } |
response.setMsg(e.getMessage()); | response.setMsg(e.getMessage()); | ||||
return onFailed(request, response, YgzInterfaceLog.class, System.currentTimeMillis() - begin, e.getMessage()); | return onFailed(request, response, YgzInterfaceLog.class, System.currentTimeMillis() - begin, e.getMessage()); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
logger.error("YGZ系统异常:{}", e.getMessage()); | |||||
logger.error("YGZ系统异常:", e); | |||||
throw exception(request, YgzInterfaceLog.class, e.getMessage()); | throw exception(request, YgzInterfaceLog.class, e.getMessage()); | ||||
} | } | ||||
} | } |