Spring Boot Support

This feature enables support for Spring Boot applications using Spring Boot version 2.x.x.

Open Liberty support for Spring Boot is integrated with support for the web container by using the Java Servlets and JavaServer Pages features. The Transport Security or Java WebSocket features can be enabled if HTTPS or WebSocket support is needed. All other server configuration is handled by Spring Boot application properties.

For example, security properties can be set 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.

Enabling this feature

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


Supported Java versions

  • JavaSE-1.8

  • JavaSE-11.0

  • JavaSE-17.0

  • JavaSE-20.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.

com.ibm.websphere.appserver.springBoot-2.0; type="osgi.subsystem.feature"