> Markdown version of [/videos/1514-what-s-new-with-spring-boot-and-containers?t=279](https://www.wearedevelopers.com/videos/1514-what-s-new-with-spring-boot-and-containers?t=279). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # What's (new) with Spring Boot and Containers? Stop wrestling with complex Dockerfiles. Spring Boot now uses native Buildpacks and Testcontainers to automatically generate OCI images and streamline your entire backend workflow. - **Speakers:** [Eva Panadero](https://www.wearedevelopers.com/@eva-panadero), [maeddes](https://www.wearedevelopers.com/@maeddes) - **Event:** World Congress 2025 - **Published:** August 20, 2025 - **Duration:** 29:14 - **URL:** https://www.wearedevelopers.com/videos/1514-what-s-new-with-spring-boot-and-containers ## Summary The evolution of Java and container tooling has culminated in deep integrations that streamline the modern backend workflow. A core challenge in containerizing Spring Boot applications is managing layer configurations and dependency caching through complex Dockerfiles. Using Cloud Native Buildpacks—integrated directly via Maven or the pack CLI—solves this by automatically generating optimized OCI images and native compiled binaries without requiring developers to maintain manual build scripts. Effective local development and ephemeral testing historically relied on error-prone manual port mappings. Spring Boot simplifies this through native Docker Compose integration, acting as a single source of truth by automatically extracting configuration metadata at runtime. Furthermore, adopting Testcontainers with the @ServiceConnection annotation entirely eliminates boilerplate property injection. This empowers developers to utilize a test-scope main method to spin up a fully functional dev mode with realistic backend services that tear themselves down automatically. This declarative pattern now extends seamlessly into artificial intelligence and production orchestration. Developers can utilize Testcontainers to run local large language models via Spring AI, easily swapping containerized components like Ollama during testing. Finally, transitioning these applications into production is smoothed by Kubernetes integrations, where Actuator effortlessly exposes customizable liveness and readiness probes to ensure resilient orchestration with minimal configuration overhead. **Keywords:** spring boot container integration, cloud native buildpacks, dockerfile layer optimization, native image compilation, spring boot docker compose, testcontainers workflow, serviceconnection property injection, ephemeral testing environments, spring ai testcontainers, local llm containerization, kubernetes liveness probes, spring boot actuator automation, java backend containerization, spring boot test-run mode, ollama model runner ## Chapters 1. **Evolution of Spring Boot and container technology integration** (00:02) — Tracing the evolution of these technologies reveals powerful integrations that simplify modern software development. 1. **Leveraging containers for reliable and scalable application deployments** (02:47) — Structuring standard container layers ensures consistent performance from local development through distributed production environments. 1. **Optimizing image builds using buildpacks and native images** (04:39) — Replacing manual Dockerfiles with buildpacks automates optimal layering and significantly reduces maintenance overhead. 1. **Simplifying local testing with Spring Boot compose integration** (10:55) — Connecting Spring Boot directly to compose definitions eliminates manual configuration mismatches when running local databases. 1. **Automating container lifecycles using Testcontainers and service connections** (18:00) — Running ephemeral databases via code annotations removes infrastructure setup friction during automated test execution. 1. **Exploring local artificial intelligence model testing using containers** (22:29) — Deploying localized language models through test configurations allows developers to validate features without external dependencies. 1. **Configuring Kubernetes liveness and readiness probes using Spring Actuator** (26:39) — Exposing application health status through dedicated actuator endpoints allows cluster orchestrators to correctly route traffic. ## Related Moments - [Building Spring Boot applications with cloud native buildpacks](https://www.wearedevelopers.com/videos/443-going-serverless-using-the-spring-framework-ecosystem) (from "Going serverless using the Spring Framework ecosystem") - [Building and optimizing Docker images using Spring Boot layers](https://www.wearedevelopers.com/videos/242-microservices-how-to-get-started-with-spring-boot-and-kubernetes) (from "Microservices: how to get started with Spring Boot and Kubernetes") - [Adopting AI tools for developer container workflows](https://www.wearedevelopers.com/videos/100183-from-build-to-breach-hacking-kubernetes-through-the-supply-chain) (from "From Build to Breach: Hacking Kubernetes Through the Supply Chain") - [Introduction to building shared Spring Boot libraries](https://www.wearedevelopers.com/videos/100345-code-once-use-everywhere-building-shared-libraries-for-multiple-projects) (from "Code Once, Use Everywhere: Building Shared Libraries for Multiple Projects") - [Evolving from application containers to bootable systems](https://www.wearedevelopers.com/videos/1593-bootable-ai-containers-with-podman-desktop) (from "Bootable AI Containers with Podman Desktop") - [Session overview and setup for building AI applications](https://www.wearedevelopers.com/videos/1141-building-ai-driven-spring-applications-with-spring-ai) (from "Building AI-Driven Spring Applications With Spring AI") ## Related Articles - [Building AI Solutions with Rust and Docker](https://www.wearedevelopers.com/magazine/494-building-ai-solutions-with-rust-and-docker) - [MLops – Deploying, Maintaining And Evolving Machine Learning Models in Production](https://www.wearedevelopers.com/magazine/115-mlops-deploying-maintaining-and-evolving-machine-learning-models-in-production) - [How we Build The Software of Tomorrow](https://www.wearedevelopers.com/magazine/120-how-we-build-the-software-of-tomorrow) - [Learning Kubernetes made easy with KubeCampus](https://www.wearedevelopers.com/magazine/348-learning-kubernetes-made-easy-with-kubecampus) ## Related Jobs - [Java Softwareentwickler - Spring Boot & Microservices](https://www.wearedevelopers.com/jobs/ext/1306817-java-softwareentwickler-spring-boot-microservices) at **Aok Systems Gmbh** - [Devops Engineer](https://www.wearedevelopers.com/jobs/ext/1940926-devops-engineer) at **Bitpanda** - [Senior Backend Engineer (Java)](https://www.wearedevelopers.com/jobs/ext/19369-senior-backend-engineer-java) at **Bonial International GmbH** - [Senior Software Developer Java (m/w/d)](https://www.wearedevelopers.com/jobs/39654-senior-software-developer-java-m-w-d) at **Sopra Steria Custom Software Solutions GmbH** - [Backend Developer Java (m/w/d)](https://www.wearedevelopers.com/jobs/45989-backend-developer-java-m-w-d) at **Sopra Steria Custom Software Solutions GmbH** - [Senior Engineer, Infrastructure Platform](https://www.wearedevelopers.com/jobs/ext/328836-senior-engineer-infrastructure-platform) at **Intercom, Inc.**