Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
This post was edited and submitted for review 2 years ago and failed to reopen the post:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
每个 Spring Boot Web 应用程序都包含一个嵌入式网络服务器。只需在 docker 容器中运行 JAR,您的应用程序就会启动,无需单独的应用程序服务器。
Dockerfile 可以很简单:
不要忘记使用 Spring Boot Maven 插件 使 JAR 可执行。
Each Spring Boot web application includes an embedded web server. Just run the JAR in the docker container and your application will spin-up, there is no need for a separate application server.
Dockerfile can be as simple as:
Don't forget to use the Spring Boot Maven Plugin to make the JAR executable.