What do I need to download to start developing applications with the Spring framework?

I need to start developing applications using Spring framework and I am wondering what tools I need to download to get me up and running.

On the SpringSource website, I can see all of these applications being loaded and I'm wondering if I really need all of this? And which versions should I be using, especially for the Spring Framework?

  • Spring Framework
  • SpringSource dm server samples
  • Spring Security
  • Spring Webflow
  • Spring Web Services
  • Spring Dynamic Modules
  • Spring Integration
  • Spring Package
  • Spring.NET
  • Spring JavaConfig
  • Spring LDAP
  • Spring Extensions
  • Spring IDE
  • Spring BlazeDS Integration
  • SpringSource Bundlor
  • Spring ROO

What other applications do I need to download (e.g. Struts, Glassfish, Apache, etc.)?

+1


source to share


4 answers


It depends what you want to use Spring for. These are usually web applications. If so, you only need two things:

  • Spring framework (with minimal dependencies); and
  • Servlet container (like Tomcat) or full blown application server (like Glassfish, JBoss).

Everything else is optional. I believe the only dependency required is the Apache Commons registration. Depending on what features you use, you may need more.



If so, here is a [tutorial] [1] that builds a barebones Spring MVC project. There are many others for this and other topics.

It is entirely possible to use Spring in, say, a Swing application, in which case you clearly don't need a servlet container.

+2


source


All you need from SpringSource is the Spring Framework.

Spring 3.0 is on the way, but for now use 2.5.6.SEC01, the current product release.

You can start with a simple servlet container (ie: Tomcat) rather than a full blown application server (ex: JBoss, Glassfish).



Spring Framework comes bundled with jars for web development i.e. spring-web and spring-webmvc.

See # 117535 for a simple example of using Spring MVC.

+1


source


It mainly depends on what you need Spring for. Each piece of Spring can, in fact, be used in isolation from the rest. You can only use it for IOC, in which case you don't need e.g. MVC and servlets etc.

The easiest way to get started is to download the main package from http://www.springsource.com/download/community?project=Spring%20Framework

You can use Spring from any IDE

+1


source


The best way is to use Maven with your project. Basically all you have to do is edit your pom.xml file and say that you want to use Spring. Then when you compile your code, Maven will exit and automatically download the Spring libraries you need from their shared repository.

Here's an example: http://pookey.co.uk/blog/archives/63-Getting-started-with-Maven-and-Spring.html

0


source







All Articles