본문 바로가기
오류노트

스프링부트 jwt Handler dispatch failed; nested exception is java.lang.StackOverflowError

by 어컴띵 2021. 3. 13.

스프링 부트 적용중 스택 오버플로우 오류발생

원인은 다음 코드에 있음

authenticationManager() -> authenticationManagerBean()으로 바꿔줘야 함

public class SecurityConfig extends WebSecurityConfigurerAdapter {

    @Bean
    @Override
    public AuthenticationManager authenticationManager() throws Exception{
        return super.authenticationManagerBean();
    }

출처 : stackoverflow.com/questions/61594513/while-try-to-authenticate-my-login-i-am-getting-error-handler-dispatch-failed

 

While try to authenticate my login I am getting error "Handler dispatch failed; nested exception is java.lang.StackOverflowError

I am getting error "Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.StackOverflowError] with root c...

stackoverflow.com