Skip to content

Upgrade to spring 7#10218

Merged
nielsm5 merged 22 commits intomasterfrom
issue/10200-upgrade-to-spring-7
Jan 7, 2026
Merged

Upgrade to spring 7#10218
nielsm5 merged 22 commits intomasterfrom
issue/10200-upgrade-to-spring-7

Conversation

@evandongen
Copy link
Contributor

Changes

Pull Request Checklist

Title

  • Title expresses the business value (who benefits + what outcome)

Issues

  • Relevant issues linked

Backports

  • Backport PRs created (if needed) and linked

Documentation

  • FF! Doc updated (user-facing behavior/config)
  • FF! Manual updated (if applicable)
  • Javadoc updated/generated (developer-facing APIs)

Tests

  • Unit tests added/updated
  • E2E/Integration tests added/updated (if applicable)

Breaking changes

  • Breaking change recorded in markdown file
  • Migration notes included (if needed)

@evandongen evandongen linked an issue Dec 30, 2025 that may be closed by this pull request
@nielsm5
Copy link
Member

nielsm5 commented Dec 30, 2025

Beetje dubbelop zo, kijk ook even naar #10216.

@evandongen evandongen marked this pull request as ready for review December 31, 2025 09:54
@evandongen evandongen requested a review from a team as a code owner December 31, 2025 09:54
@evandongen
Copy link
Contributor Author

All tests passed locally

<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
<version>2.8.14</version>
<version>3.0.0</version>
Copy link
Contributor Author

@evandongen evandongen Dec 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sneaky dependency still included spring boot 3.5.7


converters.add(new InputStreamHttpMessageConverter());
converters.add(new FormHttpMessageConverter());
public void configureMessageConverters(HttpMessageConverters.ServerBuilder builder) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extendedMessageConverters is deprecated since jackson 3 is now used

Copy link
Contributor

@tnleeuw tnleeuw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik zie dat alles nu werkt, behalve de Ladybug-integration tests in WildFly...

(

java.lang.NoSuchFieldError: Class com.fasterxml.jackson.annotation.JsonFormat$Shape does not have member field 'com.fasterxml.jackson.annotation.JsonFormat$Shape POJO'
	at deployment.iaf-test.war//tools.jackson.databind.ser.BasicSerializerFactory.buildMapSerializer(BasicSerializerFactory.java:692)
	at deployment.iaf-test.war//tools.jackson.databind.ser.BasicSerializerFactory.buildContainerSerializer(BasicSerializerFactory.java:491)

)

Comment on lines 48 to 51
@Bean
public RequestMappingHandlerMapping handlerMapping() {
RequestMappingHandlerMapping handlerMapping = new RequestMappingHandlerMapping();
handlerMapping.setUseTrailingSlashMatch(true); // See wearefrank/ladybug #610
return handlerMapping;
return new RequestMappingHandlerMapping();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moeten we deze bean nog steeds expliciet aanmaken nu we dit property niet meer hoeven te zetten, of heeft Spring een default instance ervoor wanneer we hem niet zelf maken?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aangepast, ik denk dat je gelijk hebt. Even kijken wat dit doet.

Copy link
Member

@nielsm5 nielsm5 Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dit maakt het kapot. Ik heb het weer teruggezet

<scope>import</scope>
</dependency>

<!-- Explicitly define Spring dependencies, to avoid version conflicts with Spring Security (https://www.baeldung.com/spring-security-with-maven) -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waarom zijn deze dependencies omgewisseld in de POM?

Is het niet netter om alle Spring dependencies bij elkaar te hebben staan, zoals het stond?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Het stond juist niet bij elkaar, zie de -snip- tussen netty (regel 161) en spring-boot (528). Als je hierboven uitvouwt, zie je juist spring-framework en spring-integration.

</dependency>

<!-- Because we use Spring-JCL we don't want Commons Logging. -->
<!-- Spring-jcl has been deprecated, included commons-logging -->
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<scope>import</scope>
</dependency>

<!-- Explicitly define Spring dependencies, to avoid version conflicts with Spring Security (https://www.baeldung.com/spring-security-with-maven) -->
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Het stond juist niet bij elkaar, zie de -snip- tussen netty (regel 161) en spring-boot (528). Als je hierboven uitvouwt, zie je juist spring-framework en spring-integration.

Comment on lines 48 to 51
@Bean
public RequestMappingHandlerMapping handlerMapping() {
RequestMappingHandlerMapping handlerMapping = new RequestMappingHandlerMapping();
handlerMapping.setUseTrailingSlashMatch(true); // See wearefrank/ladybug #610
return handlerMapping;
return new RequestMappingHandlerMapping();
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aangepast, ik denk dat je gelijk hebt. Even kijken wat dit doet.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
56.5% Coverage on New Code (required ≥ 65%)
15.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@nielsm5 nielsm5 merged commit a9c303f into master Jan 7, 2026
24 of 25 checks passed
@nielsm5 nielsm5 deleted the issue/10200-upgrade-to-spring-7 branch January 7, 2026 14:26
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.

Spring version bump

3 participants