Skip to content

Conversation

@nicolasb29
Copy link

Hi,

In the issue #3165 I found that the modularization introduced in Spring Boot 4 causes issues when deploying applications on external web server (with WAR files).

The org.springframework.boot.web.server package has now been moved to a separate module since the modularization of Spring Boot 4. It cannot and must not be included in a WAR deployment on an external application server (such as Tomcat, for example).

The changes consist in removing any references to classes from org.springframework.boot.web.server in ActuatorProvider, and providing them only in the context of an embedded application server.

I used Suppliers for the data coming from a WebServerInitializedEvent.

I added tests to verify each step:

@bnasslahsen bnasslahsen merged commit 7dd3a34 into springdoc:spring-boot-4 Dec 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants