title: java.lang.ClassNotFoundException: org.springframework.dao.support.PersistenceExceptionTranslator
body: <p>I have created a spring boot web project using a 2.1.8 version of boot from <a href="https://start.spring.io/" rel="nofollow noreferrer">https://start.spring.io/</a>.
  When I run the project, it throws the error:</p>
  <blockquote>
  <p>java.lang.ClassNotFoundException:
  org.springframework.dao.support.PersistenceExceptionTranslator</p>
  </blockquote>
  <p>Please help me out in resolving this issue.</p>
  <p><strong>Pom.xml</strong></p>
  <pre class="lang-xml prettyprint-override"><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-data-mongodb&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;commons-io&lt;/groupId&gt;
          &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
          &lt;version&gt;2.5&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  <p><strong>Application starter class code:</strong></p>
  <pre class="lang-java prettyprint-override"><code>@SpringBootApplication
  @EnableCaching
  @EnableAutoConfiguration
  @ComponentScan(&quot;com.mkcl.misServerMonitor&quot;)
  public class MisServerMonitorApplication {
      public static void main(String[] args) {
          SpringApplication.run(MisServerMonitorApplication.class, args);
      }
  }
  </code></pre>