小编Obi*_*Obi的帖子

http.exceptionHandler() 在 spring 6.2 中已弃用并删除

我正在尝试在 Spring 6.1.2 中设置 HttpSecurity 并且需要向其中添加 jwtEntrypoint 但我发现

protected void configure(HttpSecurity http) throws Exception {
    http.cors().and().csrf().disable();
    http.exceptionHandling().authenticationEntryPoint(jwtAuthenticationEntryPoint);has been removed
Run Code Online (Sandbox Code Playgroud)

我尝试了 http.exceptionHandling().authenticationEntryPoint(jwtAuthenticationEntryPoint); 正如一些答案中所见,但它仍然不起作用

https spring-boot

3
推荐指数
1
解决办法
4292
查看次数

标签 统计

https ×1

spring-boot ×1