第10章 Spring Boot應(yīng)用部署運(yùn)維
10.1 Spring Boot應(yīng)用運(yùn)行
To create a ‘fully executable’ jar with Maven use the following plugin configuration:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable>
</configuration>
</plugin>
With Gradle, the equivalent configuration would be:
springBoot {
executable = true
}
You can then run your application by typing ./my-application.jar