栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

在不使用Maven的情况下可以从哪里下载Spring Framework jars?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

在不使用Maven的情况下可以从哪里下载Spring Framework jars?

请编辑以使此镜像列表保持最新
我找到了这个

maven
仓库,你可以在其中直接从
zip
包含所需jar的文件中下载文件。

  • http://maven.springframework.org/release/org/springframework/spring/
  • http://repo.spring.io/release/org/springframework/spring/

替代解决方案:Maven
我更喜欢使用的解决方案Maven,这很容易,你不必jar单独下载每个解决方案。你可以按照以下步骤进行操作:

  1. 例如,使用你喜欢的任何名称在任何地方创建一个空文件夹
    spring-source
  2. 创建一个名为
    pom.xml
  3. 将下面的xml复制到该文件中
  4. spring-source
    在控制台中打开文件夹
  5. Run
    mvn install
  6. 下载完成后,你会在其中找到spring jars
    /spring-source/target/dependencies
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">  <modelVersion>4.0.0</modelVersion>  <groupId>spring-source-download</groupId>  <artifactId>SpringDependencies</artifactId>  <version>1.0</version>  <properties>    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>  </properties>  <dependencies>    <dependency>      <groupId>org.springframework</groupId>      <artifactId>spring-context</artifactId>      <version>3.2.4.RELEASE</version>    </dependency>  </dependencies>  <build>    <plugins>      <plugin>        <groupId>org.apache.maven.plugins</groupId>        <artifactId>maven-dependency-plugin</artifactId>        <version>2.8</version>        <executions>          <execution> <id>download-dependencies</id> <phase>generate-resources</phase> <goals>   <goal>copy-dependencies</goal> </goals> <configuration>   <outputDirectory>${project.build.directory}/dependencies</outputDirectory> </configuration>          </execution>        </executions>      </plugin>    </plugins>  </build></project>

另外,如果你需要下载其他任何Spring项目,只需

dependency
从相应的网页复制配置即可。

例如,如果要下载

Spring Web Flowjar
,请转至其网页,然后将其
dependency
配置添加到中
pom.xml dependencies
,然后
mvn install
再次运行。

<dependency>  <groupId>org.springframework.webflow</groupId>  <artifactId>spring-webflow</artifactId>  <version>2.3.2.RELEASE</version></dependency>


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/420521.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号