Error creating bean with name 'entityManagerFactory' when add spring boot jpa dependency

后端 未结 3 1711
旧巷少年郎
旧巷少年郎 2020-12-09 17:51

I have problem when trying to add JPA to my Spring Boot program. Everything is working fine until I added the below to my pom.xml (I haven\'t added any code related to JPA H

相关标签:
3条回答
  • 2020-12-09 18:14

    Your dependencies is conflicted i thought. You can check it using the command in console.

    mvn dependency:tree -Dverbose
    

    Good luck.

    0 讨论(0)
  • 2020-12-09 18:15

    tried this following line in VM arguments in any IDE like eclipse or STS

    --add-modules java.xml.bind
    

    Good Luck ...!!

    0 讨论(0)
  • 2020-12-09 18:18
    <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
    </dependency>
    

    Add this dependency in pom.xml

    The latest version could be found here : mvnrepository.com

    0 讨论(0)
提交回复
热议问题