如何下载 Spring 框架
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38953991/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How To Download Spring Framework
提问by Njabulo Shongwe
I am trying to download spring framework for my java application in this https://projects.spring.io/spring-framework/site, but the problem is that there is no option for the download.
我正在尝试在此https://projects.spring.io/spring-framework/站点中为我的 java 应用程序下载 spring 框架,但问题是没有下载选项。
Can anyone help please.
任何人都可以请帮忙。
回答by Ved Prakash
Just download the latest zip version from https://repo.spring.io/release/org/springframework/spring/.Then unzip it and add jars from it to your project
只需从https://repo.spring.io/release/org/springframework/spring/下载最新的 zip 版本。然后解压缩它并将 jars 添加到您的项目中
回答by Sergio Otero Lopez
Select which modules you need and generate an initial project in https://start.spring.io/
选择你需要的模块并在https://start.spring.io/ 中生成一个初始项目
回答by Alireza Abolhasani
you can use this web site For any framework such as spring: https://jar-download.com/artifacts/org.springframework/spring-core
您可以使用此网站对于任何框架,例如 spring:https: //jar-download.com/artifacts/org.springframework/spring-core
回答by Petrit Avdyli
There is already an answerto your question.
你的问题已经有了答案。
But if you are using maven or gradle (Dependency Management tools), you have the snippets needed to use Spring Framework on the site you provided. Just add these to your dependencies:
但是,如果您使用的是 maven 或 gradle(依赖项管理工具),则在您提供的站点上有使用 Spring Framework 所需的代码片段。只需将这些添加到您的依赖项中:
MAVEN:
马文:
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.3.2.RELEASE</version>
</dependency>
</dependencies>
GRADLE
摇篮
dependencies {
compile 'org.springframework:spring-context:4.3.2.RELEASE'
}