Toggle navigation
Toggle navigation
This project
Loading...
Sign in
crp
/
crp-operation
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wanghongbo
2025-08-01 11:25:42 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
558fbc80225c89bee375a426c6b8d903235377dd
558fbc80
2 parents
d3264ae5
21aee251
Merge remote-tracking branch 'origin/master'
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
src/main/java/com/wondertek/exception/GlobalExceptionHandler.java
src/main/java/com/wondertek/exception/GlobalExceptionHandler.java
View file @
558fbc8
...
...
@@ -82,6 +82,16 @@ public class GlobalExceptionHandler {
}
@ExceptionHandler
(
value
=
BusinessException
.
class
)
@ResponseStatus
(
HttpStatus
.
BAD_REQUEST
)
public
ResultBean
handleBusinessException
(
BusinessException
e
)
{
return
responseException
(
e
.
getErrorCode
()
+
REQUEST_PARAMS_IS_NOT_EMPTY
,
e
);
}
@ExceptionHandler
(
value
=
MissingServletRequestParameterException
.
class
)
@ResponseStatus
(
HttpStatus
.
BAD_REQUEST
)
...
...
Please
register
or
login
to post a comment