Tomcat always throws such an error when launching a MAVEN project:
Error creating Bean with Name ' org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration ': Injection of autowired dependencies failed;
Look at the last sentence of the mistake is
Cannot determine embedded database driver class for database type NONE
To find a foreign asking similar question, one of the answers is to add a dependency in Pom.xml
<Dependency> <groupid>< Span class= "PLN" >com.</groupid><artifactid>h2 </artifactid> < version>1.3. 156</version> </dependency>
Is there anyone here who asks you to be sure you want to H2 database when we talk about Gae/datastore? One person followed up and said that he had succeeded, and another man said he had succeeded. So I tried it, it's done!
Someone behind the analysis said that because spring boot will automatically load several databases, so we need datasource and so on, Another person said that as long as the SPRING-BOOT-STARTER-DATA-JPA rely on the removal of Hibernate-entitymanager, but I did not succeed, read the review also suspected that he wrote the wrong. There are others who want to cancel the Datasourceautoconfiguration and study it later.
reference:http://stackoverflow.com/questions/24074749/ Spring-boot-cannot-determine-embedded-database-driver-class-for-database-type
Spring JPA Data notes