Configure Logging Levels button missing after update spring boot 4
search cancel

Configure Logging Levels button missing after update spring boot 4

book

Article ID: 448386

calendar_today

Updated On:

Products

VMware Tanzu Platform - Cloud Foundry

Issue/Introduction

After upgrade Java app to Spring Boot 4 and Java 25, the “Configure Logging Levels” button on the App Manager logs tab is no longer visible.

However, for apps built with SpringBoot 3.x and Java 17, the button is present.

 

 

Environment

Spring Boot 4

Cause

Starting with Spring Boot 4, Cloud Foundry-specific functionality has been modularised and no longer automatically enabled by the presence of Actuator alone.

The Cloud Foundry actuator integration including the /cloudfoundryapplication endpoint and its associated CORS handling is now provided by a separate Spring Boot module.

If your application doesn’t include the Cloud Foundry starter: spring-boot-starter-cloudfoundry

The “Configure Logging Levels” button on the App Manager logs tab will be unavailable.

 

 

Resolution

To add the Cloud Foundry starter dependency to your Spring Boot 4 application, update following dependency:

Maven

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-cloudfoundry</artifactId>
</dependency>
 

Gradle

 
implementation "org.springframework.boot:spring-boot-starter-cloudfoundry"

 

Following the rebuild and redeployment of the application, the /cloudfoundryapplication endpoint now correctly includes the necessary CORS headers. This change will prompt Tanzu Apps Manager to display the “Configure Logging Levels” button.

 

Along with below properties 
management.cloudfoundry.enabled=true
management.cloudfoundry.skip-ssl-validation=true

Doc reference 

https://docs.spring.io/spring-boot/reference/actuator/cloud-foundry.html