Spring JPA Data Notes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.