![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring Security
风在哪
个人网站:https://www.wygandwdn.cn
欢迎来访问啊!
展开
-
Security中如何在自定义过滤器(Filter)中注入Service方法?
Security中在自定义filter中注入Service方法问题起源最近做项目遇到一个问题:在spring security中自定义JwtLoginFilter继承自UsernamePasswordAuthenticationFilter,进行登录认证。在其中有一个我自己写的构造函数,然后我想调用自己写的Service来进行用户名和密码的验证,所以就使用@Autowired的方法注入。但是在...原创 2020-04-11 21:12:51 · 1461 阅读 · 0 评论 -
Vue+Spring Security前后端交互如何处理跨域请求
问题复现Access to XMLHttpRequest at 'http://localhost:8081/login' from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It ...原创 2020-04-12 13:30:26 · 1766 阅读 · 3 评论