First Spring MVC project using Spring Tool Suite (STS) and Maven build

Goal(s)

In this article I will show you how to create your first J2EE applications using Spring Framework and Maven build.

Info

Maven is a build tools (or automation tools) for Java project. It is similar with Ant or Gradle. Maven can automatically download the required dependencies for your project.

Requirements

  1. Spring Tool Suite (STS) for Java EE (http://spring.io/tools/sts/all).
    Please choose the file according to your OS. I prefer to download the archive version because of its portability.
  2. An internet connection.
    For the first time creating a Spring MVC project, internet connection is REQUIRED. You need to download some project templates from Spring repository. Maven also would like to download some dependencies for Spring. Make sure that you have internet connection. If you are behind a proxy, please refer to this tutorial [1].

Continue reading