Spring Boot - Testing Spring Boot Applications
You wrote this test but it fails with a
NoSuchBeanDefinitionException for TestRestTemplate. What is the likely cause?\@SpringBootTest
class MyTest {
\@Autowired
private TestRestTemplate restTemplate;
\@Test
void test() {
// test code
}
}