http.addFilterBefore(jwtAuthenticationTokenFilter(),UsernamePasswordAuthenticationFilter.class)为何报错,如何修改
时间: 2023-08-27 20:14:28 浏览: 130
根据引用内容来看,问题是关于报错和如何修改的。根据引用中的信息,需要修改的地方有MyAuthenticationSuccessHandler,JwtAuthenticationTokenFilter和SpringSecurityConfig三个地方,删除与JWT相关的内容即可。在引用中提到的自定义认证失败处理器可能也需要进行相应修改。具体的修改代码可以参考引用中给出的文章。至于关于"报错"并没有提供具体的错误信息,所以无法给出具体的修改建议。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [SpringSecurity权限管理系统实战—七、处理一些问题](https://blog.csdn.net/HYDCS/article/details/107765898)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [springSecurity jwt 认证与鉴权及异常](https://blog.csdn.net/C18298182575/article/details/119839364)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文