The main difference between @SpringBootTest and @WebMvcTest annotations is that @SpringBootTest annotation will start the full application context. Whereas @WebMvcTest annotation will make Spring Framework create application context with a limited number of beans(only those related to the Web Layer).