Commit 0f40c1c3 authored by 赵啸非's avatar 赵啸非

删除过滤器

parent 3ce8ee7a
...@@ -23,7 +23,7 @@ import java.io.IOException; ...@@ -23,7 +23,7 @@ import java.io.IOException;
* @author: zxfei * @author: zxfei
* @date: 2022/4/20 14:52 * @date: 2022/4/20 14:52
*/ */
@Component //@Component
@Slf4j @Slf4j
public class RequestFilter extends OncePerRequestFilter implements Filter { public class RequestFilter extends OncePerRequestFilter implements Filter {
......
package com.mortals.xhx.base.framework.security; package com.mortals.xhx.base.framework.security;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder; import org.apache.tomcat.util.net.openssl.ciphers.Authentication;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
/** /**
...@@ -16,7 +16,7 @@ public class SecurityUtils { ...@@ -16,7 +16,7 @@ public class SecurityUtils {
* 获取Authentication * 获取Authentication
*/ */
public static Authentication getAuthentication() { public static Authentication getAuthentication() {
return SecurityContextHolder.getContext().getAuthentication(); return null;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment