Commit 8a10419011d6ba4495147b7a70a19dde5c75d304
1 parent
33ee894c82
Exists in
master
and in
8 other branches
增加权限
Showing 2 changed files with 4 additions and 2 deletions
platform-common/src/main/java/com/lyms/platform/common/perf/DalMethodInterceptor.java
View file @
8a10419
| 1 | 1 | package com.lyms.platform.common.perf; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.common.utils.ExceptionUtils; | |
| 3 | 4 | import org.aopalliance.intercept.MethodInterceptor; |
| 4 | 5 | import org.aopalliance.intercept.MethodInvocation; |
| 5 | 6 | import org.slf4j.Logger; |
| ... | ... | @@ -32,6 +33,7 @@ |
| 32 | 33 | Object object = arg0.proceed(); |
| 33 | 34 | return object; |
| 34 | 35 | } catch (Exception e) { |
| 36 | + ExceptionUtils.catchException(e,e.getMessage()); | |
| 35 | 37 | }finally{ |
| 36 | 38 | long end = System.currentTimeMillis(); |
| 37 | 39 | long i =(end - start); |
platform-operate-api/src/main/resources/spring/applicationContext_biz_patient.xml
View file @
8a10419
| ... | ... | @@ -47,7 +47,7 @@ |
| 47 | 47 | </list> |
| 48 | 48 | </property> |
| 49 | 49 | </bean>--> |
| 50 | - <!-- | |
| 50 | + <!-- --> | |
| 51 | 51 | <bean |
| 52 | 52 | class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator" id="nameAutoProxyCreator"> |
| 53 | 53 | <property name="beanNames" value="*Mapper" /> |
| ... | ... | @@ -56,7 +56,7 @@ |
| 56 | 56 | <value>mysqlDalInterceptor</value> |
| 57 | 57 | </list> |
| 58 | 58 | </property> |
| 59 | - </bean> --> | |
| 59 | + </bean> | |
| 60 | 60 | |
| 61 | 61 | <!-- dal层方法性能统计--> |
| 62 | 62 | <bean id="mysqlDalInterceptor" |