Sanchit
Sanchit

Reputation: 851

What is the difference between "gradle bootRun" and "gradle run" to run a springboot application?

To run a Spring Boot application, there are two gradle tasks:

  1. gradle bootRun
  2. gradle run

Both tasks can be used to run the Spring Boot application, what are the main differences between these tasks?

Upvotes: 63

Views: 65383

Answers (1)

sQer
sQer

Reputation: 1151

  1. gradle bootRun - standard gradle'run' task with additional Spring Boot features. e.g. you can type: bootRun {addResources = false}check github
  2. gradle run standard gradle 'run' task

Upvotes: 50

Related Questions