Create new Spring Boot project using Spring Tool Suite

The Spring Tool Suite (STS) is a powerful tool for developers working with the Spring framework. With Spring Boot, it is no exception. In support of Spring Boot, STS has integrated with Spring Initializr that makes it easy to get started with Spring Boot. In this article, I will guide you all how to create new Spring Boot project using Spring Tool Suite.

I’m using STS version 3.9.0.RELEASE.

First, start up your STS, then go to File, select New then Spring Starter Project. A New Spring Starter Project window will appear.

Create new Spring Boot project using Spring Tool Suite

In this window, as you can see, there is a lot of information we need to enter.

First information is the Service URL. By default, the value will be http://start.spring.io. This is the Spring Initializr URL, that helps Spring Tool Suite can get all needed information for creating Spring Boot project. Let leave it with default value.

The Project Name field is your project name. You can choose your project type Maven or Gradle in Type, select Packaging as JAR file or WAR file, choose the Java version to use.

The rest are the necessary information of Maven or Gradle project including Group Id, Artifact Id, Version, Description and Package.

You can enter values as you like, here I entered these values as follows:

Create new Spring Boot project using Spring Tool Suite

After finishing, let click Next button to continue.

A Dependency window will appear.

Create new Spring Boot project using Spring Tool Suite

Like creating a Spring Boot project using the Spring Initializr Web, enter the dependency name you want to add to your project, and STS will suggest it to you.

For example, here, I need dependency for the Web, I will enter in the Available box as follows:

Create new Spring Boot project using Spring Tool Suite

Dependency for the Web will appear, you just mark it as okay.

Here, for example, I choose the following dependencies:

Create new Spring Boot project using Spring Tool Suite

After you have selected the dependencies, let click Next button to continue.

Create new Spring Boot project using Spring Tool Suite

As you can see, above is the URL of Spring Initializr for the web, STS will call this URL for Spring Initializr to create Spring Boot project for us.

Click the Finish button to finish creating a new Spring Boot project in your STS.

Result:

Create new Spring Boot project using Spring Tool Suite

 

Create new Spring Boot project using Spring Tool Suite
Đánh giá bài viết
Chia sẽ bài viết này ...Share on Facebook
Facebook
2Share on Google+
Google+
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Add Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.