第10章 Spring Boot应用部署运维
10.1 Spring Boot应用运行
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
网友评论