close

Phil Webb

Phil Webb

Spring Framework commiter

San Francisco

Phil Webb is a Spring Framework developer and co-creator of the Spring Boot project. Prior to joining Pivotal and relocating to California, Phil worked for a number of UK technology companies.
Blog Posts by Phil Webb

Spring Boot 2.4.0-M3 available now

On behalf of the team and everyone that contributed, I am pleased to announce that the third milestone of Spring Boot 2.4 has been released and is available from our milestone repository.

This release closes 160 issues and pull requests. Thanks to all those who have contributed with issue reports and pull requests.

Highlights of this milestone include:

  • Java 15 support
  • A new Startup actuator endpoint
  • Docker authentication support
  • Config data import improvements
  • Numerous dependency upgrades

For a complete list of changes and upgrade instructions, please see the Spring Boot 2.4 Release Notes on the wiki and the updated reference documentation.

Read more...

Config file processing in Spring Boot 2.4

Spring Boot 2.4.0.M2 has just been released, and it brings with it some interesting changes to the way that application.properties and application.yml files are loaded.

If your applications use the fairly typical setup of only using a single application.properties or application.yml file, then you’ll probably not notice any difference. If, however, you have applications that use more complex setups (such as profile specific properties), you might want to read on to learn about what we’ve changed and why.

Read more...

Spring Boot 2.4.0-M2 is now available

On behalf of the team and everyone that contributed, I am pleased to announce that the second milestone of Spring Boot 2.4 has been released and is available from our milestone repository. This release closes just over 250 issues and pull requests.

If you’re trying this release with an existing Spring Boot 2.3 project, please note the slight change in the format of the version. 2.4.0-M2 is using our new versioning scheme.

Highlights of this second milestone include:

Read more...

What's new in Spring Boot 2.3

Speaker: Phil Webb (@phillip_webb)

Timecodes

Use the timecodes below if you want to jump to a specific part of the presentation:

  • 00:27 - Intro
  • 01:59 - Creating the Demo
  • 04:01 - Building Docker Images with the Spring Boot Plugin
  • 09:21 - Building Docker Images with a Dockerfile
  • 16:40 - Customizing Layers
  • 21:38 - Graceful Shutdown
  • 25:19 - Kubernetes Probes
  • 30:55 - Configuration Properties End-to-End Traceability
  • 33:00 - Wrap-up and Upgrade Gotchas

Links

The following links are referenced in the presentation:

Read more...

Spring Boot 2.3.1 available now

On behalf of the team and everyone that has contributed, I’m happy to announce that Spring Boot 2.3.1 has been released and is now available from repo.spring.io and Maven Central.

This release includes 127 bug fixes, enhancements, documentation improvements, and dependency upgrades. Thanks to all those who have contributed with issue reports and pull requests.

How can you help?

If you’re interested in helping out, check out the “ideal for contribution” tag in the issue repository. If you have general questions, please ask on stackoverflow.com using the spring-boot tag or chat with the community on Gitter.

Read more...

Spring Boot 2.3.0.RC1 available now

On behalf of the team and everyone that contributed, I am pleased to announce that the first release candidate of Spring Boot 2.3 is available now from our milestone repository.

This release closes over 70 issues and pull requests. Thanks to all those who have contributed.

Highlights of this milestone include:

  • Auto-configuration of a Wavefront sender bean.
  • Easier configuration of the data/time converts used by web applications.
  • Automatic creation of the developmentOnly configuration in Gradle.
  • Java buildpack support from the newly created Paketo project.
Read more...

Creating Docker images with Spring Boot 2.3.0.M1

Spring Boot 2.3.0.M1 has just been released and it brings with it some interesting new features that can help you package up your Spring Boot application into Docker images. In this blog post we’ll take a look at the typical ways developers create Docker images, and show how they can be improved by using these new features.

Common Docker Techniques

Although it’s always been possible to convert the fat jars produced by Spring Boot into Docker images, it’s pretty easy to make less than optimal results. If you do a web search for "dockerize spring boot app", the chances are high you’ll find an article or blog post suggesting you create a dockerfile that looks something like this:

FROM openjdk:8-jdk-alpine
EXPOSE 8080
ARG JAR_FILE=target/my-application.jar
ADD ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]

Whilst this approach works fine, and it’s nice and concise, there are a few things that are sub-optimal.

The first problem with above file is that the jar file is not unpacked. There’s always a certain amount of overhead when running a fat jar, and in a containerized environment this can be noticeable. It’s generally best to unpack your jar and run in an exploded form.

The second issue with the file is that it isn’t very efficient if you frequently update your application. Docker images are built in layers, and in this case your application and all its dependencies are put into a single layer. Since you probably recompile your code more often than you upgrade the version of Spring Boot you use, it’s often better to separate things a bit more. If you put jar files in the layer before your application classes, Docker often only needs to change the very bottom layer and can pick others up from its cache.

Two new features are introduced in Spring Boot 2.3.0.M1 to help improve on these existing techniques: buildpack support and layered jars.

Read more...

Spring Boot 2.1.x EOL November 1st 2020

With the recent release of Spring Boot 2.2, we’d like to announce that maintenance for Spring Boot 2.1 will end on November 1st 2020.

We’ll keep publishing the occasional maintenance release up until that point, but we recommend that all users consider upgrading to Spring Boot 2.2 as soon as possible. Upgrading to Spring Boot 2.2 from 2.1 should not be too difficult, and upgrade instructions are available on the WIKI.

In order to help track the state of supported releases we’ve also introduced a new “supported versions” WIKI page. You can see at a glance which Spring Boot versions are supported and when they will EOL.

Read more...

Spring Boot 2.1.6 released

On behalf of the team and everyone who has contributed, I am pleased to announce that Spring Boot 2.1.6 has been released and is now available from repo.spring.io and Maven Central.

This is a maintenance release that includes a number bug fixes, dependency updates and documentation improvements.

Remember that Spring Boot 1.5 will be end of life in august, so all users should now be upgrading to Spring Boot 2.1.

How can you help?

If you’re interested in helping out, check out the “ideal for contribution” tag in the issue repository. If you have general questions, please ask on stackoverflow.com using the spring-boot tag or chat with the community on Gitter.

Read more...

Spring Boot 2.1.5 released

On behalf of the team and everyone who has contributed, I am pleased to announce that Spring Boot 2.1.5 has been released and is now available from repo.spring.io and Maven Central.

This is a maintenance release that includes a number of important dependency updates and bug fixes.

A gentle reminder that Spring Boot 1.5 will be end of life in august, so all users should now be upgrading to Spring Boot 2.1.

How can you help?

If you’re interested in helping out, check out the “ideal for contribution” tag in the issue repository. If you have general questions, please ask on stackoverflow.com using the spring-boot tag or chat with the community on Gitter.

Read more...