The Ponzinomics

Have you ever wondered why crypto people often ask each other, “When did you first buy Bitcoin?” This is a common question that is not so prevalent in any other industries. Has anyone ever asked you…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Spring Boot Hello World Application with Intellij IDEA

We are going to create a sample web application that has only one API which returns a Hello World text. This application is created using Spring Boot and Intellij IDEA Spring initializr.

So, first we will create a new project on File->New->Project.

On the left pane, choose Spring Initializr and select your SDK version, then click Next.

In the next window we will define group and artifact values of our project and also give it a name and description. If you write the project name with dashes as in the below picture, your main Application class will be automatically created in camel case format, in our case it’s going to be SpringBootExampleApplication.

After you click next, a new window will be opened and you can choose your dependencies here. For this project I just choosed Spring Web. Now you can Next and create the project.

You can see that whole project structure is already created and also our main Application class is created as below.

First we need to define this class as a RestController, so add ‘@RestController’ annotation before class definition. Then add a new method to handle the request and return a response, I’ve added a method named sayHello.

You can access the sample project on github repository below:

Add a comment

Related posts:

Why Summer Classes for Kids Are Important to Attend?

Summer is here! Most of us recall fondly and joyfully the seemingly endless, carefree summer days of our childhood. However, as parents, some of us may have mixed feelings about this time of year for…

10 Captivating Facts About Ritsuko

Ritsuko Tominaga has one of the most fascinating life histories that I have ever heard. A sole proprietor and business consultant with 4 employees at Re-mix Co., Ritsuko is a middleman or middlewoman…

On Conan and Rocks

A short tour through the geology of the Hyborian Age with Conan The Barbarian.