title: Cannot resolve class or package 'h2'
body: <p>I develop back-end application for my web app.
  In my project (SpringBoot + Maven) I would like to add h2 database.
  According to tutorials from web:</p>
  <ol>
  <li><p>Added following lines in <em><strong>application.properties</strong></em> file:</p>
  <pre><code> server.port = 8088
   spring.h2.console.enabled=true
   spring.h2.console.path=/h2
   spring.datasource.url=jdbc:h2:mem:testdb
   spring.datasource.username=sa
   spring.datasource.password=
   spring.datasource.driverClassName=org.h2.Driver    //h2 seems to be NOT found
   spring.jpa.show-sql=true
  </code></pre>
  </li>
  <li><p>Added following dependencies in <em><strong>pom.xml</strong></em> file:</p>
  <pre><code> &lt;dependency&gt;
       &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
       &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
   &lt;/dependency&gt;
   &lt;dependency&gt;
       &lt;groupId&gt;com.h2database&lt;/groupId&gt;
       &lt;artifactId&gt;h2&lt;/artifactId&gt;
   &lt;/dependency&gt;
  </code></pre>
  </li>
  </ol>
  <p><em><strong>PROBLEM:</strong></em></p>
  <p>in <em><strong>application.properties</strong></em> : &quot;Cannot resolve class or package 'h2'&quot;</p>
  <p><em>full inspection:</em>  &quot;Checks Spring Boot application .properties configuration files. Highlights unresolved and deprecated configuration keys and invalid values. Works only for Spring Boot 1.2 or higher.&quot;</p>
  <p>Certainly, my Spring Boot is higher than 1.2 (1.5.8). <strong>I've found similar problem in web, but &quot;reloding dependencies&quot; doesnt work,</strong> so still i dont have a solution :). Please help.</p>