Exp 1
Exp 1
Date: .....................................
Algorithm: To demonstrate the setup and configuration of a Spring and Spring Starter
project using Spring Tool Suite (STS).
➢ Materials Required:
• Spring Tool Suite (STS) installed on your computer
• Java Development Kit (JDK)
• Internet connection (for downloading dependencies)
➢ Install Spring Tool Suite (STS):
• Download STS from the official website: Spring Tool Suite.
• Install STS by following the on-screen instructions.
➢ Open Spring Tool Suite (STS):
• Launch the STS IDE after installation.
➢ Create a New Spring Starter Project:
• Go to File > New > Spring Starter Project.
• Enter the project's name, such as "MySpringApp".
• Select the desired Spring Boot version.
• Choose the project metadata: Group, Artifact, Name, Description, Package
Name, Packaging (Jar or War), Java Version.
• Click Next.
➢ Select Dependencies:
• Choose the necessary dependencies for your project, such as Spring Web,
Spring Data JPA, Thymeleaf, etc.
• Click Next.
➢ Configure Project Location and Finish:
• Choose the location to save your project.
• Click Finish to create the project. STS will now download the dependencies
and create the project structure.
Setp-1: Download STS from the official website: Spring Tool Suite
Step-3: Open STS and Launch the STS IDE after installation.
Step-3 : Open STS and Launch the STS IDE after installation.
Step-3 : Open STS and Launch the STS IDE after installation.
Step-5: Select the desired Spring Boot version. Choose the project metadata: Group,
Artifact, Name, Description, Package Name, Packaging (Jar or War), Java Version. Click
Next.
Step-6: Choose the necessary dependencies for your project, such as Spring Web, Spring
Data JPA, Thymeleaf, etc.Click Finish.
STS will now download the dependencies and create the project structure.
Step-7: Write a simple code and click run as and select Spring Boot App