Home >Java >javaTutorial >Why am I getting \'Error creating bean...\' when using Spring Data JPA?
When using Spring Data JPA, an error can occur if the necessary Hibernate dependencies are not included in the project. To resolve this issue:
<code class="xml"><dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>4.1.4.Final</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>5.2.3.Final</version> </dependency></code>
Alternatively, you can simply add the following dependency:
<code class="xml"><dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.0</version> </dependency></code>
The above is the detailed content of Why am I getting \'Error creating bean...\' when using Spring Data JPA?. For more information, please follow other related articles on the PHP Chinese website!