Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Java Tutorial
  • Java Spring
  • Spring Interview Questions
  • Java SpringBoot
  • Spring Boot Interview Questions
  • Spring MVC
  • Spring MVC Interview Questions
  • Java Hibernate
  • Hibernate Interview Questions
  • Advance Java Projects
  • Java Interview Questions
Open In App
Next Article:
Spring Boot - Annotations
Next article icon

How to Create a Spring Boot Project?

Last Updated : 17 Mar, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Spring Boot is built on top of the spring and contains all the features of spring. It is one of the most popular frameworks for building Java-based web applications and microservices. It is a favorite among developers due to its rapid, production-ready environment, which allows developers to focus on business logic rather than struggling with complex configuration and setup. Spring Boot is a microservice-based framework, and making a production-ready application in it takes very little time.

The key features of the Spring Boot framework are listed below:

  • Eliminates the need for heavy XML configuration found in traditional Spring projects.
  • Simplifies the creation and maintenance of RESTful endpoints.
  • Includes an embedded Tomcat server for easier deployment.
  • Facilitates the seamless deployment of WAR and JAR files to a Tomcat server.

Generally, to develop a Spring Boot Application, we choose Eclipse, Spring Tool Suite, and IntelliJ IDEA IDE. So in this article, we are going to create our spring boot project in these 3 IDEs. 

Create a Spring Boot Project in Eclipse IDE

Eclipse is a widely used IDE for Java development. The steps to create a Spring Boot project in Eclipse are listed below:

Procedure:

  • Install Eclipse IDE for Enterprise Java and Web Developer
  • Create a Spring Boot Project in Spring Initializr
  • Import Spring Boot Project in Eclipse IDE
  • Search "maven" and choose Existing Maven Project
  • Choose Next
  • Click on the Browse button and select the extracted zip 
  • Click on the Finish button and we are done creating the Spring Boot project

Step-by-Step Implementation

Step 1: Install Eclipse IDE for Enterprise Java and Web Developer

Please refer to this article How to Install Eclipse IDE for Enterprise Java and Web Development and install the Eclipse IDE.

Step 2: Create a Spring Boot Project in Spring Initializr

Go to this link and create a Spring Boot project. Please fill in all the details accordingly and at last click on the GENERATE button below. This will download your Spring Boot project in zip format. Now extract the folder into your local machine. For more details in Spring Initializr refer to this article: Spring Initializr

SpringInitalizr


Step 3: Import Spring Boot Project in Eclipse IDE

Go to the Eclipse IDE for Enterprise Java and Web Developer > File > Import as shown in the below image.

ImportingProjectInEclipse


Step 4: Search "maven" and choose Existing Maven Project and click on the Next button as shown in the below image. 

SearchMaven


Step 5: Now click on the Browse button and select the extracted zip file that has been generated.

SelectExtractZipFile


Step 6. And at last click on the Finish button and we are done creating the Spring Boot project 

Note: By now, Spring Boot project has been created as depicted in the below media  

ProjectCreated


Create a Spring Boot Project in STS IDE

Spring Tool Suite (STS) is a java IDE tailored for developing Spring-based enterprise applications. It is easier, faster, and more convenient. And most importantly it is based on Eclipse IDE. STS is free, open-source, and powered by VMware. Spring Tools 4 is the next generation of Spring tooling for the favorite coding environment. Largely rebuilt from scratch, it provides world-class support for developing Spring-based enterprise applications, whether you prefer Eclipse, Visual Studio Code, or Theia IDE.

Procedure:

  • Install Spring Tool Suite IDE
  • Create a new Spring project
  • Fill details in the pop-up window and press Next.
  • Choose Spring Boot version and select dependencies and press Next.
  • Click on the 'Finish' button.

Step-by-Step Implementation

Step 1: Install Spring Tool Suite (Spring Tools 4 for Eclipse) IDE

For this user must have pre-requisite knowledge of downloading and installing Spring Tool Suite IDE

Step 2: Go to the File > New > Spring Starter Project as shown in the below image as follows:

SpringStarterProject-


Step 3: In this pop-up window fill the detail below as follows and further click on the Next button as shown in the below image. 

Service URL: Default
Name: Your Project Name
Type: Maven Project
Java Version: 17 or greater than 17
Packaging: As your need
Language: As your need
Group: A unique base name of the company or group that created the project
Artifact: A unique name of the project
Version: Default
Description: As your need
Package: Your package name

Project Metadata:

CreatingSpringBootProjectInSTS


Step 4: Choose your required Spring Boot Version and select your dependencies as per your project requirement. And at last click on the Next button.

SelectDependencies


Step 5: Now simply click on the Finish button.

ClickFinishButton

Again click on "Finish" button.

Finish


Here now, please wait for some time to download all the required files such as dependencies that you have selected in Step4 above.

DownloadingRequiredFiles


Note: Below is the Welcome screen after you have successfully Created and Setup Spring Boot Project in Spring Tool Suite

WelcomeScreen-


Create a Spring Boot Project in IntelliJ IDEA

IntelliJ is an integrated development environment(IDE) written in Java. It is used for developing computer software. This IDE is developed by Jetbrains and is available as an Apache 2 Licensed community edition and a commercial edition.

Procedure:

  • Install IntelliJ IDEA on the local machine.
  • Create a Spring Boot Project in Spring Initializr
  • Import Spring Boot Project in IntelliJ IDEA
  • Choose the project that you have created in above step 2.

Step 1: Install IntelliJ IDEA on the local machine for that do go through pre-requisite for installing IntelliJ Idea on the system.

Step 2: Create a Spring Boot Project in Spring Initializr

Create a Spring Boot project and do fill in all the details accordingly and at last click on the GENERATE button below. This will download your Spring Boot project in zip format. Now extract the folder into your local machine and refer to the introduction to Spring Initializr before proceeding further.

SpringInitalizr


Step 3: Import Spring Boot Project in IntelliJ IDEA

Once IntelliJ IDEA is successfully installed, navigate to File > Open as seen in the below image. 

ImportingProjectsss

After this, a pop-up window will occur like the following. 

Step 4: Here you have to choose the project that you have created in step 2. For example, here we have created the spring boot project named "demo" and stored it inside the Downloads folder and you can see we can find the same inside the Downloads folder. At last click on the OK button. And we are done creating the Spring Boot project in IntelliJ IDEA. Please wait for some time to download all the required files. 

ClickOKButton


By now, the Spring Boot project has been created as depicted in the below media. The left side contains the Project file structure while in the middle you can see the Code Editor is present. 

SpringBootProjectCreated

Next Article
Spring Boot - Annotations

A

AmiyaRanjanRout
Improve
Article Tags :
  • Java
  • How To
  • Advance Java
  • Java-Spring-Boot
Practice Tags :
  • Java

Similar Reads

    Spring Boot Tutorial
    Spring Boot is a Java framework that makes it easier to create and run Java applications. It simplifies the configuration and setup process, allowing developers to focus more on writing code for their applications. This Spring Boot Tutorial is a comprehensive guide that covers both basic and advance
    10 min read
    Introduction to Spring Boot
    Spring is widely used for creating scalable applications. For web applications, Spring provides Spring MVC, a commonly used module for building robust web applications. The major drawback of traditional Spring projects is that configuration can be time-consuming and overwhelming for new developers.
    5 min read
    Best Way to Master Spring Boot – A Complete Roadmap
    In the corporate world, they say "Java is immortal!". But Why? Java remains one of the major platforms for developing enterprise applications. Enterprise Applications are used by large companies to make money. Those applications have high-reliability requirements and an enormous codebase. According
    14 min read
    How to Create a Spring Boot Project?
    Spring Boot is built on top of the spring and contains all the features of spring. It is one of the most popular frameworks for building Java-based web applications and microservices. It is a favorite among developers due to its rapid, production-ready environment, which allows developers to focus o
    6 min read
    Spring Boot - Annotations
    Spring Boot Annotations are a form of metadata that provides data about a spring application. Spring Boot is built on the top of the spring and contains all the features of spring. And is becoming a favorite of developers these days because of its rapid production-ready environment which enables the
    7 min read
    Spring Boot - Architecture
    Spring Boot is built on top of the core Spring framework. It simplifies and automates Spring-based application development by reducing the need for manual configuration. Spring Boot follows a layered architecture, where each layer interacts with other layers in a hierarchical order. The official Spr
    3 min read
    Spring Boot Actuator
    Developing and managing an application are the two most important aspects of the application’s life cycle. It is very important to know what is going on beneath the application. Also, when we push the application into production, managing it gradually becomes critically important. Therefore, it is a
    5 min read
    Spring Boot - Introduction to RESTful Web Services
    RESTful Web Services REST stands for REpresentational State Transfer. It was developed by Roy Thomas Fielding, one of the principal authors of the web protocol HTTP. Consequently, REST was an architectural approach designed to make the optimum use of the HTTP protocol. It uses the concepts and verbs
    5 min read
    How to create a basic application in Java Spring Boot
    Spring Boot is the most popular Java framework that is used for developing RESTful web applications. In this article, we will see how to create a basic Spring Boot application.Spring Initializr is a web-based tool using which we can easily generate the structure of the Spring Boot project. It also p
    3 min read
    How to Create a REST API using Java Spring Boot?
    Representational State Transfer (REST) is a software architectural style that defines a set of constraints for creating web services. RESTful web services allow systems to access and manipulate web resources through a uniform and predefined set of stateless operations. Unlike SOAP, which exposes its
    4 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences