Skip to content

Tag: spring-boot

In which database JpaRepository uses by default?

When we using methods that come from JpaRepository like save, in which database spring boot use? and how can we change the default database if necessary? Answer It uses the database which you have configured in your properties file. You can change the database using the following properties(MySQL example):

Why handleResponse(URI url, HttpMethod method, ClientHttpResponse response) method of RestTemplate.class is getting called for a 200 Succeess response

I am calling an external API from my code using RestTemplate like below: This API call is returning 200 Success but when I debug it, it still goes to handleResponse(URI url, HttpMethod method, ClientHttpResponse response) method of RestTemplate.class And then it’s coming to my RestTemplateErrorHandler.j…