Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
OSmall
/
linjiashop
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4513c5f7
authored
Jan 18, 2021
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去除商品简介的校验
1 parent
3a7732cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
shop-core/src/main/java/com/glsx/shop/bean/exception/GlobalExceptionHandler.java
shop-core/src/main/java/com/glsx/shop/bean/exception/GlobalExceptionHandler.java
View file @
4513c5f
package
com
.
glsx
.
shop
.
bean
.
exception
;
package
com
.
glsx
.
shop
.
bean
.
exception
;
import
javax.validation.ConstraintViolationException
;
import
com.glsx.shop.bean.vo.front.Rets
;
import
com.glsx.shop.bean.vo.front.Rets
;
import
org.apache.shiro.authz.UnauthorizedException
;
import
org.apache.shiro.authz.UnauthorizedException
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -44,7 +45,7 @@ public class GlobalExceptionHandler {
...
@@ -44,7 +45,7 @@ public class GlobalExceptionHandler {
* @param e 异常
* @param e 异常
* @return 异常信息
* @return 异常信息
*/
*/
@ExceptionHandler
({
BindException
.
class
})
@ExceptionHandler
({
BindException
.
class
,
ConstraintViolationException
.
class
})
public
Object
handleBindException
(
Exception
e
)
{
public
Object
handleBindException
(
Exception
e
)
{
this
.
logger
.
error
(
"!!!! ERROR"
,
e
);
this
.
logger
.
error
(
"!!!! ERROR"
,
e
);
return
Rets
.
failure
(
ApplicationExceptionEnum
.
PARAM_ERROR
.
exception
());
return
Rets
.
failure
(
ApplicationExceptionEnum
.
PARAM_ERROR
.
exception
());
...
...
Write
Preview
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