title: Exception in Rest Template : Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/log/LogDelegateFactory
body: <p>Method in my code :</p>
  <pre><code>public static &lt;T&gt; ResponseEntity&lt;T&gt; get(String url, HashMap&lt;String,String&gt; parameters, HashMap&lt;String,String&gt; headers, Class&lt;T&gt; responseType){
          System.out.println(url);
          return new RestTemplate().exchange(
              String.format(&quot;%s%s&quot;,url, toQueryString(parameters)),
              HttpMethod.GET,
              toHttpEntity(headers), responseType);
      }
  </code></pre>
  <p>While requesting for new object of Rest Template , it gives me below exception on --&gt;new RestTemplate():</p>
  <p>Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: org/springframework/core/log/LogDelegateFactory
  at org.springframework.http.HttpLogging.forLog(HttpLogging.java:68)
  at org.springframework.http.HttpLogging.forLogName(HttpLogging.java:57)
  at org.springframework.http.client.support.HttpAccessor.(HttpAccessor.java:54)
  at org.springframework.http.client.support.InterceptingHttpAccessor.(InterceptingHttpAccessor.java:45)
  at org.springframework.web.client.RestTemplate.(RestTemplate.java:137)</p>
  <p>dependency in pom.xml</p>
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
              &lt;version&gt;5.2.7.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
              &lt;version&gt;2.11.0&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>