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 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 the following lines.

 

Hello World Application

Add MyApp class with the flowing content and run it.

 

 

Spring Boot 1.5.X.RELEASE

Edit build.gradle file and add the following lines:

 

 

2
Leave a Reply

avatar
2 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
trackback

[…] Spring Boot & Gradle – Project Setup […]

trackback

[…] Spring Boot & Gradle – Project Setup […]

Close Menu