728x90
@Autowired
private MockMvc mockMvc;
해당 코드를 입력했을 때 bean을 찾지 못하는 에러가 발생했다.
인텔리 제이 업데이트를 진행시켰더니 해결되었다.
Can't Autowired MockMvc using @WebMvcTest
I'm trying to test my REST Controller in my Spring Boot application. This is my test class import com.binar.kelompok3.secondhand.repository.OffersRepository; import org.springframework.beans.factory.
stackoverflow.com
반응형