Spring Boot writes a Web project that, when using SPRING-DATA-JPA, launches the following error:
Error starting ApplicationContext. To display the Auto-configuration report re-run your application with ' debug ' enabled.
2018-04-02 17:00:47.076 ERROR 4648---[main] o.s.boot.springapplication:application startup failed
Workaround: Add dependencies to both
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>5.0.3.Final</version>
</dependency>
In addition, we can see that in MainApplication, the following annotations are also available:
@EnableAutoConfiguration
(exclude={DataSourceAutoConfiguration.
class
})
Startup does not make an error, but at this point, the automatic creation of table functionality is not implemented, it is recommended to use the first way.
Spring Boot Error: Error creating bean with Name ' entitymanagerfactory ' defined in class path resource