Creating “Hello World “Spring Boot Project with STS and Maven Part 1

1. Download the Spring STS tools

Link : and extract it to run

2. Start new Spring Started Project

Enter the name and select the project location, and check if version of java is same as the java version you have installed

3. Explore the Project

4. Creating a new Package

Inside main/java right click to create a new package

5. Under the Newly created package create a new class

And add the following code

package com.example.demo.sts.apiendpoint;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;
@RestControllerpublic class DemoSTSEndpoint {@RequestMapping("/")public String hello(){return "Hello World";}}

Start the Project

Output :

headover to localhost:8080/




Software Developer |

Love podcasts or audiobooks? Learn on the go with our new app.

Yield Farming Launch: Bug Fixes and Next Steps

Questions You Need to Ask When Deploying a Multi CDN Strategy

An Alliance: Python and R (Syntax)


Python Enums — How you should be using them.

Continuing lessons from my mistakes

Leetcode 3. Longest Substring Without Repeating Characters

SQLAlchemy: Calculating and Joining Tables

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Harshit Yadav

Harshit Yadav

Software Developer |

More from Medium

Read data from YAML file Spring boot application

Null check strategy in HTTP PATCH with Java 8 Consumer

Spring vs. SpringBoot

Main Components of JVM