Spring versions(5.0.0 used in this tutorial):
Spring Framework 4.2.0 was released on 31 July 2015 and was immediately upgraded to version 4.2.1, which was released on 01 Sept 2015. It is "compatible with Java 6, 7 and 8, with a focus on core refinements and modern web capabilities".Spring Framework 4.3 has been released on 10 June 2016.
5.0.0m4 in its beta has been released in dec 2016.
Setting up(using maven)
---------------------------------------------------------------------------------------------
1) Download Spring jars
2)Configure IDE to use these jars(Eclipse IDE used)
Steps:
1)Create a new maven project in Eclipse.
2)Download the latest Spring jar files.(I used https://github.com/spring-projects/spring-framework/releases after a google search). And add the jars under the "dist" folder into the project build path.
(or)
Simply include the below code to the pom.xml file user the project directory as mentioned in the http://projects.spring.io/spring-framework/. This link also has the info on the latest Spring framework versions.
<dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.0.M3</version> </dependency> </dependencies>
In order to get this dependency tag based on spring version, click on the version in this link : https://mvnrepository.com/artifact/org.springframework/spring-core
Doing so(including in pom.xml and save) will automatically update your maven project with required Spring jars.
---------------------------------------------------------------------------------------------
No comments:
Post a Comment