要使用javax.persistence在Maven项目中,需要添加以下依赖关系:
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
<version>2.2</version>
</dependency>
这将下载并添加javax.persistence-api JAR文件到项目的classpath中。确保在pom.xml文件中的
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
相关推荐:Eclipse警告:找不到类javax.persistence