Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sap-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sap-service
Commits
b7a2fa82
Commit
b7a2fa82
authored
Jul 17, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
1ac7ad26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
ExceptionAspect.java
src/main/java/com/egolm/sso/config/ExceptionAspect.java
+2
-7
MaterialMasterServiceTest.java
src/test/java/test/MaterialMasterServiceTest.java
+0
-2
No files found.
src/main/java/com/egolm/sso/config/ExceptionAspect.java
View file @
b7a2fa82
...
@@ -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 统一异常处理
}
}
}
}
src/test/java/test/MaterialMasterServiceTest.java
View file @
b7a2fa82
...
@@ -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
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment