-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
570 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<a id="deployment"></a> | ||
|
||
# 六、部署 Spring Boot 应用程序 | ||
|
||
Spring Boot 的可执行 jar 是现成的,适用于大多数流行的云 PaaS(Platform-as-a-Service,平台即服务)提供商。这些提供商往往要求你「自带容器」。它们负责管理应用程序进程(而不是 Java 应用程序),因此它们需要一个中间层,使你的应用程序适应云概念中的运行进程。 | ||
|
||
有两个流行的云提供商 Heroku 和 Cloud Foundry 采用了 buildpack 方式。buildpack 将你部署的代码包装在启动应用程序所需的环境中。它可能是一个用于调用 `java` 的 JDK、一个内嵌 Web 服务器或一个完整的应用程序服务器。buildpack 是可插拔的,但理想情况下,你应尽可能少地进行自定义。其减少了不受控制的功能数,最大限度地减少了开发和生产环境之间的差异。 | ||
|
||
理想情况下,你的应用程序(比如一个 Spring Boot 可执行 jar)打包了运行所需的所有内容。 | ||
|
||
在本节中,我们将使用「[起步](getting-started.md)」章节中开发的一个[简单应用程序](getting-started.md#getting-started-first-application)作为范例,并将其运行在云中。 | ||
|
||
**待续** | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.