在以下方面寻找Maven工件:Spring + Hibernate + JPA [英] Looking for a Maven Artifact for: Spring + Hibernate + JPA

查看:91
本文介绍了在以下方面寻找Maven工件:Spring + Hibernate + JPA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Maven的新手,并且有以下两个有关Maven的问题:

I'm new to Maven, and have the following 2 questions about Maven:

  1. 我正在寻找一个包含Spring + Hibernate + JPA的Maven工件.我发现的唯一一个是与Flex混合的.现在,我想保持简单,不想处理Flex增加的复杂性.

  1. 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.

当您下载Maven工件(例如Spring + Hibernate + JPA的工件)时,它们是否已经带有必需的配置,或者Maven仅处理库和文件的下载,所以我必须进入并添加必要的配置?

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?

推荐答案

我正在寻找一个包含Spring + Hibernate +的Maven工件. JPA.我发现的唯一一个是与Flex混合的.为了 现在,我想保持简单,并且不想处理 Flex增加了复杂性.

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.

我不知道这种伪像.无论如何,如果您只想升级一个供应商库,则为不同的供应商库提供单独的工件可能是一个好主意.

I am not aware of such an artifact. Anyway, having separate artifacts for different vendor libraries is probably a good idea in case you want to upgrade only one.

当您下载Maven工件(例如Spring + Hibernate的工件)时 + JPA,它们是否已经带有必需的配置,或者Maven仅处理库和文件的下载,然后我 必须进入并添加必要的配置?

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来获取数据库凭证和位置,这使得无法随工件一起提供.

Generally the configuration you have to do is minimal and directly related to your own environment, e.g. persistence.xml for database credentials and location, which makes it impossible to be shipped with the artifact.

这篇关于在以下方面寻找Maven工件:Spring + Hibernate + JPA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆