[英]ejb3 persistence and javax persistence jar files in classpath?
I am using spring3 and Hibernate4 JPA application. 我正在使用spring3和Hibernate4 JPA应用程序。 I have below two jars in my classpath.
我的类路径中有两个罐子以下。
ejb3-persistence-1.0.2.GA.jar
Javax.persistence jar version 1.0.2
Do i need both the jars? 我需要两个罐子吗? why these jars are required?
为什么需要这些罐子?
Thanks! 谢谢!
You can use either one of this jar. 您可以使用其中一个罐子。 These jars contains JPA API classes only.
这些jar仅包含JPA API类。 No specific implementation logic.
没有特定的实现逻辑。 If you use maven(gradle, ivy), no need to include this jar since you have added hibernate dependency.
如果您使用的是maven(gradle,ivy),则无需包含此jar,因为您已添加了休眠依赖关系。 Maven will automatically include dependent jars of your project dependent jars.
Maven将自动包括项目依赖罐中的依赖罐。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.