• Tutorials
  • Courses
  • Tracks

Question 2

Last Updated :
Discuss
Comments

Which annotation is typically used with TestRestTemplate to start the server on a random port for testing?

@WebMvcTest

@EnableRestTemplate

@RestTest

@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)

Share your thoughts in the comments