第10章 Spring Boot应用部署运维

作者: 光剑书架上的书 | 来源:发表于2017-04-25 23:40 被阅读401次

第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

10.2 使用Docker部署

相关文章

网友评论

本文标题:第10章 Spring Boot应用部署运维

本文链接:https://www.haomeiwen.com/subject/kfvbzttx.html