Add message that WebGoat should be running while detecting datasource
This commit is contained in:
parent
969335f2f6
commit
44ab36aa1b
@ -94,7 +94,7 @@ public class DataSourceResolver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void healthCheck(RestTemplate restTemplate) {
|
public void healthCheck(RestTemplate restTemplate) {
|
||||||
log.info("Checking database availability.");
|
log.info("Checking database availability (make sure WebGoat is running)...");
|
||||||
JsonNode json = restTemplate.getForObject(baseUrl + dbHealthPath, JsonNode.class);
|
JsonNode json = restTemplate.getForObject(baseUrl + dbHealthPath, JsonNode.class);
|
||||||
String status = getDsHealthStatus(json);
|
String status = getDsHealthStatus(json);
|
||||||
if (!status.equals("UP")) {
|
if (!status.equals("UP")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user