Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
01f96122
authored
2025-04-23 19:34:22 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
210c8460
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
lego-framework/src/main/java/com/lego/framework/exception/GlobalExceptionHandler.java
lego-framework/src/main/java/com/lego/framework/exception/GlobalExceptionHandler.java
View file @
01f9612
...
...
@@ -185,9 +185,7 @@ public class GlobalExceptionHandler {
*/
@ExceptionHandler
(
MethodArgumentNotValidException
.
class
)
public
R
<
Void
>
handleMethodArgumentNotValidException
(
MethodArgumentNotValidException
e
)
{
System
.
out
.
println
(
"=============="
+
e
.
getMessage
());
log
.
error
(
e
.
getBindingResult
().
getObjectName
());
log
.
error
(
e
.
getBindingResult
().
getFieldError
().
getField
());
log
.
error
(
e
.
getMessage
());
String
message
=
e
.
getBindingResult
().
getFieldError
().
getDefaultMessage
();
return
R
.
fail
(
message
);
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment