为什么javax.persistence-api在spring data jpa starter中被jakarta.persistence-api取代?
2022-09-03 18:33:25
我最近开始学习弹簧靴,数据jpa。从中我可以看到,jpa 启动器使用的 spring boot 数据不是 :jakarta.persistence-api
javax.persistence-api
<artifactId>spring-boot-starter-data-jpa</artifactId>
...
<dependencies>
<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<exclusions>
<exclusion>
<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
</exclusion>
...
</exclusions>
</dependency>
</dependencies>
和 之间有什么区别?这种更换的原因是什么?jakarta.persistence-api
javax.persistence-api