JwtAuthenticationFilter 추가 후 WebMvcTest 오류

@WebMvcTest에서 IllegalArgumentException 터지는거 해결

참고

https://stackoverflow.com/questions/62794979/spring-boot-webmvctest-what-is-causing-illegalargumentexception-here

https://csy7792.tistory.com/334

https://velog.io/@cieroyou/WebMvcTest와-Spring-Security-함께-사용하기

해결 방법1

@AutoConfigureMockMvc(addFilters = false) 이 어노테이션을 추가한다.

그래도 오류가 난다.

JwtAuthenticationFilter에서 사용하는 TokenProvider 를 아무래도 못 찾는 것 같다.