Spring Boot Support
3.0
2.0
1.5

This feature enables support for Spring Boot applications that use Spring Boot version 3.x.x.

Open Liberty support for Spring Boot is integrated with support for the web container by using the Jakarta Servlets and Jakarta Server Pages features. You can enable the Transport Security or Jakarta WebSocket features if you need HTTPS or WebSocket support. All other server configuration is handled by Spring Boot application properties.

For example, you can set security properties by using spring.security.* application properties. The Open Liberty Spring Boot feature does not integrate with the functions that are provided by other Liberty features, such as Application Security and Jakarta Restful Services. If an application needs functions similar to what is provided by these Open Liberty features, the Spring Boot project provides Spring Boot starters that can be included in the application. Including Spring Boot starters like spring-boot-starter-security or third-party starters like cxf-spring-boot-starter-jaxrs in an application allows it to use technologies that are provided by the starter instead of using Liberty features. For more information, see Configure and Deploy Spring Boot applications to Open Liberty.

Faster startup for Spring applications with Liberty InstantOn

The Spring Framework and Spring Boot support of the Coordinated Restore at Checkpoint (CRaC) project integrates with Liberty InstantOn when you enable the Coordinated Restore at Checkpoint 1.4 feature. The Spring support for checkpointing and restoring an application manages the lifecycle of application resources such as socket, files, and thread pools. For more information, see the Spring Boot documentation on Checkpoint and Restore and the Spring Framework Checkpoint and Restore support documentation.

Spring Boot Starters

Spring Boot Starters are a set of convenient dependency descriptors provided by the Spring Boot that you can include in your application. When you use these starters with a Spring Boot application that is deployed on Open Liberty, you might need to enable features beyond the Spring Boot Support feature. The following table lists the Open Liberty features that are required to support certain Spring Boot 3.0 starters.

Open Liberty features that support Spring Boot 3.0 starters
Spring Boot StarterOpen Liberty features

spring-boot-starter

springBoot-3.0

spring-boot-starter-web

springBoot-3.0 and servlet-6.0, servlet-6.1, or pages-3.0

spring-boot-starter-websocket

springBoot-3.0 and websocket-2.0

spring-boot-starter-webflux

springBoot-3.0 and servlet-6.0, servlet-6.1, or pages-3.0

Enabling this feature

To enable the Spring Boot Support 3.0 feature, add the following element declaration into your server.xml file, inside the featureManager element:

<feature>springBoot-3.0</feature>

Supported Java versions

  • JavaSE-17.0

  • JavaSE-21.0

  • JavaSE-23.0

Developing a feature that depends on this feature

If you are developing a feature that depends on this feature, include the following item in the Subsystem-Content header in your feature manifest file.

io.openliberty.springBoot-3.0; type="osgi.subsystem.feature"