Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between spring-boot:run and spring-boot:start

What's the difference between spring-boot:run and spring-boot:start?

I see both them being available as Maven goals.

But what's the difference?

like image 702
user6123723 Avatar asked Aug 24 '16 19:08

user6123723


People also ask

What is spring boot start?

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need minimal Spring configuration.

What does spring Boot Run do?

The Spring Boot Maven plugin includes a run goal which can be used to quickly compile and run your application. Applications run in an exploded form just like in your IDE.

Which version of spring boot should I use?

What Spring version should I use? Choosing a Spring version is relatively simple: If you are building new Spring Boot projects, the version of Spring you are using is already pre-defined for you. If you are using Spring Boot 2.7.

What does SpringApplication run () do?

SpringApplication. run(Classname. class, args) bootstraps a spring application as a stand-alone application from the main method. It creates an appropriate ApplicationContext instance and load beans.


1 Answers

spring-boot:run

Description:

Run an executable archive application.


spring-boot:start

Description:

Start a spring application. Contrary to the run goal, this does not block and allows other goal to operate on the application. This goal is typically used in integration test scenario where the application is started before a test suite and stopped after.

the info is right here:

http://docs.spring.io/spring-boot/docs/current/maven-plugin/index.html

like image 151
ΦXocę 웃 Пepeúpa ツ Avatar answered Oct 02 '22 13:10

ΦXocę 웃 Пepeúpa ツ