SpringBoot学习Java 核心技术SpringBoot极简教程 · Spring Boot

第10章 Spring Boot应用部署运维

2017-04-25  本文已影响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部署

上一篇 下一篇

猜你喜欢

热点阅读