Downloading and Setting up Spring

You can download the Spring Tool Suite or the Spring Framework jars alone or use the maven/gradle repositories. You can also use Spring Boot to make the getting started part much easier. However, a proper understanding of the non Spring Boot way of doing things with Spring will help you understand Sping Boot better later.

 

Spring Tool Suite

The Spring Tool Suite is an Eclipse-powered development environment for building applications using the Spring Framework. STS comes on top of the latest Eclipse releases. STS supports application targeting to local, virtual and cloud-based servers.

It is freely available for development and internal business operations use with no time limits. There is a version of STS for most eclipse versions. You can download STS from spring.io/tools/sts/all or just do a simple Google search. The size of the download will be around 400mb.

 

Using the maven/gradle repositories

You can go directly to the Spring Framework page @ projects.spring.io/spring-framework. Currently (as of this writing), you will see only maven/gradle based download there. 

You can go to Spring projects page @ spring.io/projects for all Spring products including the Spring Framework.

You may use any IDE of your choice like Eclipse or Intellij IDEA.

 

Spring Framework jars alone

Currently (as of this writing) if you go to the Spring framework official download page, you will see only maven/gradle based download. You can still download the spring jars distribution from the maven repository at http://maven.springframework.org/release/org/springframework/spring.

Download the latest GA release.

You may also need to download apache commons logging jar. You can just search google for ‘apache commons logging jar’. Current download link is: http://commons.apache.org/proper/commons-logging/download_logging.cgi. Download commons-logging-XXX-bin.zip or commons-logging-XXX-bin. tar.gz depending on whether you are in windows or Linux. Once you extract, you can find the jar file commons-logging-XXX.jar. In my case, I have downloaded commons-logging-1.1.3.jar..

Note: Downloading the Spring jars directly is no more a preferred approach. 

Tags: 

Comments

I am not understanding what is the purpose of bom object? and I am working on Spring 3.2.8 version and with JBoss server, so which bom dependency I need to use? When I mention the following dependency in pom.xml:

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>4.0.1.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>

Does the jar file gets downloaded into my Maven Dependencies under Libraries?

Was it useful?

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!