title: No PersistenceProvider specified in EntityManagerFactory, and chosen PersistenceUnitInfo does not specify Annotation Based Configuration
body: <p>I doing annotation based coding, I am trying to run the application with Spring, Hibernate configuration and it is failing with error </p>
  
  <pre><code>Caused by: java.lang.IllegalArgumentException: No PersistenceProvider 
  specified in EntityManagerFactory configuration, and chosen 
  PersistenceUnitInfo does not specify a provider class name either
  </code></pre>
  
  <p><strong>Below is my code</strong></p>
  
  <pre><code>@SpringBootApplication
  @EnableJpaRepositories
  public class CurrExDemoApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(CurrExDemoApplication.class, args);
      }
  
      @Bean
      @ConfigurationProperties("app.datasource")
      public DataSource dataSource() {
          return DataSourceBuilder.create().build();
      }
  
      @Bean
      public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
          LocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean();
          em.setDataSource(dataSource());
          em.setPackagesToScan("com.currencyExchange.currExDemo");
  
          Properties props = new Properties();
          props.put("showSql", true);
          props.put("databasePlatform", Database.MYSQL);
          props.put("hibernate.hbm2ddl.auto", "create");
          em.setJpaProperties(props);
  
          return em;
      }
  }
  </code></pre>
  
  <p>What is wrong in this code?</p>