title: SpringBoot EntityManagerFactory not found
body: <p>So, trying to run first sprinboot application with JPA implementation and got the following error :</p>
  
  <pre><code>Description:
  
  Field personneDAO in com.example.demo.controller.PersonneController required a bean named 'entityManagerFactory' that could not be found.
  
  
  Action:
  
  Consider defining a bean named 'entityManagerFactory' in your configuration.
  </code></pre>
  
  <p>tried to add @Repositoy on my repo, and @EnableJpaRepositories to the main, but it doesn't helps...</p>
  
  <p>the repository (nothing too fancy):</p>
  
  <pre><code>@Repository
  public interface PersonneDAO extends JpaRepository&lt;Personne, Integer&gt;{
  }
  </code></pre>
  
  <p>the main :</p>
  
  <pre><code>@SpringBootApplication
  @EnableJpaRepositories(basePackages ="com.example.demo.repository")
  
  public class DemoApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(DemoApplication.class, args);
      }
  }
  </code></pre>
  
  <p>gradle dependencies :</p>
  
  <pre><code>dependencies {
      compile('org.springframework.boot:spring-boot-starter-web')
      providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
      testCompile('org.springframework.boot:spring-boot-starter-test')
      compile('org.apache.tomcat.embed:tomcat-embed-jasper')
      compile group: 'org.hibernate', name: 'hibernate-core', version: '5.2.16.Final'
      compile group: 'org.springframework.data', name: 'spring-data-jpa', version: '2.0.6.RELEASE'
      testCompile group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: '6.5.1.jre9-preview'
  }
  </code></pre>
  
  <p>Any ideas guys? :/</p>
  
  <p>PS : forgot the application.properties</p>
  
  <pre><code>spring.mvc.view.prefix = /WEB-INF/
  spring.mvc.view.suffix = .jsp
  
  spring.jpa.hibernate.ddl-auto=create
  spring.datasource.url=jdbc:sqlserver://localhost/DB_TEST
  spring.datasource.username=sa
  spring.datasource.password=Pa$$w0rd
  spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
  </code></pre>