"DataBufferLimit" Reported in the spring-boot-actuator-autoconfigure Module
Symptom
The spring-boot-actuator-autoconfigure module reports a "DataBufferLimit" message during compilation.

Key Process and Cause Analysis
The number of buffer bytes of the spring-boot-actuator-autoconfigure module exceeds the limit.
Conclusion and Solution
Increase the size of the buffer bytes.
- Open the WebMvcEndpointExposureIntegrationTests.java file.
vim ./spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/integrationtest/WebMvcEndpointExposureIntegrationTests.java
- Press i to enter the insert mode and modify the file.
- Add the following content to line 57:
import org.springframework.web.reactive.function.client.ExchangeStrategies;

- Modify line 168.
ExchangeStrategies exchangeStrategies = ExchangeStrategies.builder() .codecs((configurer) -> configurer.defaultCodecs().maxInMemorySize(512 * 1024)).build(); return WebTestClient.bindToServer().baseUrl("http://localhost:" + port).exchangeStrategies(exchangeStrategies) .build();
Run the :set list command to check the format. Spaces are not allowed. Use Tab to indent the code.
- Add the following content to line 57:
- Press Esc, type :wq!, and press Enter to save the file and exit.
Parent topic: Troubleshooting