Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreMy friends, Spring Boot 3.1 is nearly upon us! It drops on 18 May, in just a few short days! There are a ton of amazing features in this new release and I hope you're already trying it out (you know where). Here are some of my favorite features:
docker-compose.yml
in your project root? Add spring-boot-docker-compose
as developmentOnly
scope in Gradle or optinal
in Maven and Spring Boot will automatically run it for you on startup and shut it down on application shutdown. Here's an example@DynamicPropertySource
mechanism to configure the environment based on Testcontainer containers? - but this new release makes things even better. Define a test-code only main(String [])
method and then forward it to your production code main(String [] args)
methods. You can point that test-code only main class to new @Configuration
classes, which may in turn have Testcontainer connections defined. Run that test-code only main
method and Spring Boot will start that Testcontainer for you during development. You can use Devtools to fast reload code changes. You can use Devtools' @RestartScope
to keep the container open across reloads, too! Now you've got the ultimate in git clone
and run-able code! Here's an example.SslBundle
that describes the common keys and certificates in a unified way that you can then plugin to various HTTP servers, clients, data access technologies, etc. Here are the docs where you can learn even moreAlright, friends, we've got a lot to look at this week so let's dive right into it!