gpt4 book ai didi

java - spring-boot :run and spring-boot:start有什么区别

转载 作者:塔克拉玛干 更新时间:2023-11-03 04:58:10 25 4
gpt4 key购买 nike

spring-boot:runspring-boot:start 有什么区别?

我看到它们都可以用作 Maven 目标

但是有什么区别呢?

最佳答案

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.

信息就在这里:

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

关于java - spring-boot :run and spring-boot:start有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39131955/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com