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

标签 java spring maven spring-boot

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/

相关文章:

java - 使用 Eclipse AST 将元素添加到 AST 的特定位置

spring - 具有Derby的Spring EmbeddedDatabase需要架构

maven - 2019年发布私有(private)jvm库在私有(private)gradle/maven项目之间共享的实用方法

java - Java可以在错误日志中输出变量名和数据值吗?

java - 在 ImageJ 中将 8 位灰度 JPEG 图像转换为 32 位 TIFF 图像

java - 读取大量文件名的最有效方法是什么?

java - SpringSecurity Autowiring 解决方法

java - 添加自定义过滤器 Apache Shiro + Spring Boot

java - selenium.click() 不起作用 : Argument 1 of EventTarget. dispatchEvent 没有实现接口(interface)事件

java - Liquibase:diff 总是生成索引