Spring Boot - Testing Spring Boot Applications
Given this test snippet using
TestRestTemplate:
var response = restTemplate.getForEntity("/api/greet", String.class);
System.out.println(response.getStatusCodeValue());
System.out.println(response.getBody());
If the endpoint /api/greet returns HTTP 200 and body "Hello!", what will be printed?