Create a Spring-boot Application

Mercy Jemosop
2 min readJul 18, 2022

--

Using start.spring.io to create a spring-boot project

Introduction

Spring-boot framework is an open source java based framework used to create a micro-service that run on java virtual machine(JVM). It makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.

Micro-service is an architecture that allows the developers to develop and deploy services independently. Each service running has its own process and this achieves the lightweight model to support business applications.

This was just an introduction to know the type of project you creating.

Let’s get started.

Navigate to start.spring.io

You will land on the page above.

  • You can rename the fields to best describe your project
  • Specify java version.
  • Specify the package jar or war

To add dependencies:

There is an Add dependencies button on the right side of the page or click CTL+B to open the dependency section. Type your dependency, Example spring web in the search bar, you will get results similar to what you have searched and click on it to add the dependency to your project.

To check if your dependency was added, go back to the start.spring.io home page, under the Add dependency button.

Finally click the generate button on the bottom part of the page or CTL+ ENTER button. The project will be downloaded to your local machine.

Move to you file download, copy the project zip file and extract it in your projects directory/folder.

N.B you can add other dependencies to your project by adding them manually to your pom.xml.

Open your project in the IDE and run

mvn spring-boot:run

If the code compiles without an error, you good to get your hands dirty with spring-boot.

Happy coding!!!!!!!!!!!!!!!!!!!!!

--

--

Mercy Jemosop

Software Developer. I am open to job referrals. connect with me on twitter @kipyegon_mercy