Caused by: java.lang.ClassNotFoundException: org.jooq.util.jaxb.tools.XMLAppendable - Spring Boot JOOQ

后端 未结 2 616
北荒
北荒 2021-01-07 13:19

I am following link: https://sivalabs.in/2016/03/springboot-working-with-jooq/ and using Java8 and Spring Boot 2.2.2.RELEASE.

I followed li

相关标签:
2条回答
  • 2021-01-07 13:57

    You are showing Maven pom.xml and mentioned getting error with gradle-jooq-plugin.

    If you are using Maven then the class org.jooq.util.jaxb.tools.XMLAppendable is there in org.jooq:jooq:3.12.3 which is already added to classpath by adding spring-boot-starter-jooq.

    I made the following modifications and code generation worked fine:

    • Rename org.jooq.util.JavaGenerator to org.jooq.codegen.JavaGenerator
    • Rename org.jooq.util.h2.H2Database to org.jooq.meta.h2.H2Database
    • Rename org.jooq.util.mysql.MySQLDatabase to org.jooq.meta.mysql.MySQLDatabase
    0 讨论(0)
  • 2021-01-07 14:19

    Please add this depdendency.

    <dependency>
      <groupId>org.jooq</groupId>
      <artifactId>jooq</artifactId>
      <version>3.12.3</version>
    </dependency>
    

    Note :: Please give the version as per other jooq dependencies

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