Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft for Spring Boot 3 WAR post #3655

Merged
merged 10 commits into from
Apr 30, 2024
4 changes: 2 additions & 2 deletions posts/2024-05-01-spring-boot-3.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ The server is configured with the https://openliberty.io/docs/latest/reference/f

If you're wondering, yes, while a Spring Boot WAR must be repackaged as an executable WAR to use the optimized deployment, that executable WAR could still be deployed as a standard WAR.

=== Build container image with efficient layering
=== Part 3: Build container image with efficient layering
scottkurz marked this conversation as resolved.
Show resolved Hide resolved

Now that we have used the optimized Spring Boot deployment, we can efficiently build a container image. This image uses an indexed cache at `/lib.index.cache` to store Spring Boot dependencies in their own layer, separate from your application code.

Expand Down Expand Up @@ -234,6 +234,6 @@ Though much of the programming model is the same across the two cases, there are
(**Note:** the flow through Parts 1 and 2 of this blog post are a bit contrived to show the two deployment options, and your real development workflow would probably look a bit different. When using a traditional WAR deployment you would likely maintain your own `server.xml` file rather than continuing to use the template configuration. When using the optimized Liberty deployment there's no need to do a traditional deployment first.)
scottkurz marked this conversation as resolved.
Show resolved Hide resolved

scottkurz marked this conversation as resolved.
Show resolved Hide resolved
== References
* Clone the link:https://github.com/scottkurz/spring-liberty[repository](https://github.com/scottkurz/spring-liberty) with the finished code for the sample app in this blog.
* Clone the link:https://github.com/scottkurz/spring-liberty[repository] with the finished code for the sample app in this blog.
* Docs: link:https://openliberty.io/docs/latest/deploy-spring-boot.html[Configure and Deploy Spring Boot applications to Open Liberty]
* Guide: link:https://openliberty.io/guides/spring-boot.html[Containerizing, packaging, and running a Spring Boot application]