| | |
| | | return joinPoint.proceed();
|
| | | } catch (Throwable e) {
|
| | | e.printStackTrace();
|
| | | if (!Constant.IS_TEST)
|
| | | LogHelper.errorDetailInfo(e);
|
| | | else
|
| | | throw e;
|
| | | } finally {
|
| | | }
|
| | | return null;
|
| | |
| | | }
|
| | |
|
| | | @Around(EDP)
|
| | | public Object testAround(ProceedingJoinPoint joinPoint) throws IOException {
|
| | | public Object testAround(ProceedingJoinPoint joinPoint) throws Throwable {
|
| | | Object[] args = joinPoint.getArgs();
|
| | | PrintWriter out = null;
|
| | | ServletRequestAttributes servletContainer = (ServletRequestAttributes) RequestContextHolder
|
| | |
| | |
|
| | | } catch (Throwable e) {
|
| | | LogHelper.errorDetailInfo(e, getHttpServletParams(request), request.getRequestURI().toString());
|
| | | if (!Constant.IS_TEST)
|
| | | out.print(JsonUtil.loadFalseResult(90009, "服务器内部错误"));
|
| | | else
|
| | | throw e;
|
| | | }
|
| | | return obj;
|
| | | } else {
|
| | |
| | | ps.close();
|
| | | } catch (Exception e1) {
|
| | |
|
| | |
|
| | | } finally {
|
| | | try {
|
| | | out.close();
|
| | | } catch (IOException e1) {
|
| | | } catch (Exception e1) {
|
| | | e1.printStackTrace();
|
| | | }
|
| | | }
|