Spring Boot & Gradle – Project Setup

Spring Boot & Gradle – Project Setup

This guide shows you how to setup Spring Boot project using Gradle, and how to create the Hello World application.

Spring Boot 1.5.X.RELEASE

Edit build.gradle file and add the following lines:


Hello World Application

Add MyApp class with the flowing content and run it.


Spring Boot 2.0.X.RELEASE

There is a little difference between 1.5.X-RELEASE setup and 2.0.X-RELEASE. First of all you have to upgrade Gradle Wpapper to use Gradle 4.0 or later what I described here. Then you have to edit build.gradle  and add exact version to the Spring Boot dependencies.


Leave a Reply

Notify of
Close Menu