From 8a10419011d6ba4495147b7a70a19dde5c75d304 Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Sat, 30 Apr 2016 20:56:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/lyms/platform/common/perf/DalMethodInterceptor.java | 2 ++ .../src/main/resources/spring/applicationContext_biz_patient.xml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/platform-common/src/main/java/com/lyms/platform/common/perf/DalMethodInterceptor.java b/platform-common/src/main/java/com/lyms/platform/common/perf/DalMethodInterceptor.java index 14b404f..f13410c 100644 --- a/platform-common/src/main/java/com/lyms/platform/common/perf/DalMethodInterceptor.java +++ b/platform-common/src/main/java/com/lyms/platform/common/perf/DalMethodInterceptor.java @@ -1,5 +1,6 @@ package com.lyms.platform.common.perf; +import com.lyms.platform.common.utils.ExceptionUtils; import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.intercept.MethodInvocation; import org.slf4j.Logger; @@ -32,6 +33,7 @@ public class DalMethodInterceptor implements MethodInterceptor { Object object = arg0.proceed(); return object; } catch (Exception e) { + ExceptionUtils.catchException(e,e.getMessage()); }finally{ long end = System.currentTimeMillis(); long i =(end - start); diff --git a/platform-operate-api/src/main/resources/spring/applicationContext_biz_patient.xml b/platform-operate-api/src/main/resources/spring/applicationContext_biz_patient.xml index b025c52..845044f 100644 --- a/platform-operate-api/src/main/resources/spring/applicationContext_biz_patient.xml +++ b/platform-operate-api/src/main/resources/spring/applicationContext_biz_patient.xml @@ -47,7 +47,7 @@ --> - @@ -56,7 +56,7 @@ mysqlDalInterceptor - --> +