📝ERROR NOTE/SPRINGBOOT

[SpringBoot] @RunWith 에 빨간 줄이 표시된다면

coldNoodlePigeon 2023. 9. 28.

이는 최근 스프링부트 버전에서는 JUnit4가 아닌 JUnit5를 사용해서이다. 

당황하지 말고 차근히 구글링해서 찾아보자 (나는 또 까먹고 당황해서 왜 이러지? 했다...) 

 

@RunWith는 현재 @ExtendWith(SpringExtension.class) 로 변경되었다! 

댓글