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

JavaSpringGradleSpring Boot

Java Problem Overview


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?

Java Solutions


Solution 1 - Java

  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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSanchitView Question on Stackoverflow
Solution 1 - JavasQerView Answer on Stackoverflow