Java 9, Hibernate and java.sql/javax.transaction

前端 未结 1 1649
攒了一身酷
攒了一身酷 2021-01-06 02:31

I\'ve tried to \"upgrade\" a project using Hibernate to Java 9, but I am having problems getting the module to function properly.

The relevant part of my modul

相关标签:
1条回答
  • 2021-01-06 03:22

    Use version 1.3 instead of 1.2 of javax.transaction-api, in this version javax.transaction.xa has been removed.

    Maven dependency:

    <dependency>
        <groupId>javax.transaction</groupId>
        <artifactId>javax.transaction-api</artifactId>
        <version>1.3</version>
    </dependency>
    
    0 讨论(0)
提交回复
热议问题