From 8cf5eeac9a25f01a27e4fd1806b69bd3f9a476f0 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期六, 29 一月 2022 22:05:11 +0800
Subject: [PATCH] pdf导出优化
---
springcloud_k8s_panzhihuazhihuishequ/auth/src/main/java/com/panzhihua/auth/handel/AjaxAuthenticationEntryPoint.java | 24 +++++++++++++++---------
1 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/auth/src/main/java/com/panzhihua/auth/handel/AjaxAuthenticationEntryPoint.java b/springcloud_k8s_panzhihuazhihuishequ/auth/src/main/java/com/panzhihua/auth/handel/AjaxAuthenticationEntryPoint.java
index ac2b239..41cacdb 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/auth/src/main/java/com/panzhihua/auth/handel/AjaxAuthenticationEntryPoint.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/auth/src/main/java/com/panzhihua/auth/handel/AjaxAuthenticationEntryPoint.java
@@ -1,15 +1,19 @@
package com.panzhihua.auth.handel;
-import com.panzhihua.common.model.vos.R;
-import com.panzhihua.common.utlis.ResultUtil;
-import org.springframework.security.core.AuthenticationException;
-import org.springframework.security.web.AuthenticationEntryPoint;
-import org.springframework.stereotype.Component;
+import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
+
+import org.springframework.security.core.AuthenticationException;
+import org.springframework.security.web.AuthenticationEntryPoint;
+import org.springframework.stereotype.Component;
+
+import com.panzhihua.common.model.vos.R;
+import com.panzhihua.common.utlis.ResultUtil;
+
+import lombok.extern.slf4j.Slf4j;
/**
* @program: springcloud_k8s_panzhihuazhihuishequ
@@ -17,12 +21,14 @@
* @author: huang.hongfa weixin hhf9596 qq 959656820
* @create: 2020-12-30 18:57
**/
-
+@Slf4j
@Component
public class AjaxAuthenticationEntryPoint implements AuthenticationEntryPoint {
@Override
- public void commence(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AuthenticationException e) throws IOException, ServletException {
- ResultUtil.responseJson(httpServletResponse,R.fail("密码错误"));
+ public void commence(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse,
+ AuthenticationException e) throws IOException, ServletException {
+ log.error("错误信息【{}】", e.getMessage());
+ ResultUtil.responseJson(httpServletResponse, R.fail(e.getMessage()));
}
}
\ No newline at end of file
--
Gitblit v1.7.1