Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全局异常处理与控制器的try catch #476

Closed
luoyunchong opened this issue Aug 29, 2019 · 2 comments
Closed

全局异常处理与控制器的try catch #476

luoyunchong opened this issue Aug 29, 2019 · 2 comments

Comments

@luoyunchong
Copy link

版本号:V2.1.0
问题描述:

既然在代码中已经有了JeecgBootExceptionHandler的全局异常处理,那么在SysUserController中依然包含了大量的try catch Exception的异常拦截,二个代码是否重复使用,在SysUserController中的这些try catch大多数应该是可以删除的。

截图&代码:

image

image

@zhangdaiscott
Copy link
Member

zhangdaiscott commented Sep 1, 2019

收录
你说的对,可以简化

@zhangdaiscott
Copy link
Member

代码生成器和部分功能已经改造完成,下个版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants