我是 Maven 新手,有以下 2 个关于 Maven 的问题:
我正在寻找一个包含 Spring + Hibernate + JPA 的 Maven Artifact 。我发现的唯一一种是与 Flex 混合的。目前,我想保持简单,不想处理 Flex 增加的复杂性。
当你下载一个 Maven Artifact (例如 Spring + Hibernate + JPA 的 Artifact )时,它们是否已经带有必要的配置,或者 Maven 只处理库和文件的下载,然后我必须进去并添加必要的配置?
最佳答案
I'm looking for a Maven artifact that includes Spring + Hibernate + JPA. The only one that I found is one that is mixed with Flex. For now, I want to keep it simple, and don't want to have to deal with the Flex added complexity.
我不知道有这样的 Artifact 。不管怎样,如果您只想升级一个供应商库,那么为不同的供应商库提供单独的 Artifact 可能是一个好主意。
When you download a Maven artifact such as one for Spring + Hibernate + JPA, do they already come with the necessary configuration, or Maven only handles the downloading of the libraries and files, and then I have to go in and add the necessary configuration?
通常,您需要做的配置很少,并且与您自己的环境直接相关,例如persistence.xml 用于数据库凭据和位置,这使得它无法随 Artifact 一起提供。
关于hibernate - 正在寻找 : Spring + Hibernate + JPA 的 Maven Artifact ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8261706/