Commit b7a2fa82 authored by Quxl's avatar Quxl

x

parent 1ac7ad26
...@@ -4,7 +4,6 @@ import org.apache.commons.logging.Log; ...@@ -4,7 +4,6 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.annotation.AfterThrowing; import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@Aspect @Aspect
...@@ -15,14 +14,10 @@ public class ExceptionAspect { ...@@ -15,14 +14,10 @@ public class ExceptionAspect {
Log logger = LogFactory.getLog(ExceptionAspect.class); Log logger = LogFactory.getLog(ExceptionAspect.class);
@Before(value = execution)
public void before(Throwable ex) {
}
@AfterThrowing(throwing = "ex", pointcut = execution) @AfterThrowing(throwing = "ex", pointcut = execution)
public void afterThrowing(Throwable ex) { public void afterThrowing(Throwable ex) {
logger.error("未处理异常", ex);
//TODO 统一异常处理
} }
} }
...@@ -18,6 +18,4 @@ public class MaterialMasterServiceTest { ...@@ -18,6 +18,4 @@ public class MaterialMasterServiceTest {
service.execute(Z_MT_SD_001_MATERIAL_MASTER); service.execute(Z_MT_SD_001_MATERIAL_MASTER);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment