Repository navigation
major: Spring boot 4.1.2 upgrade - #163
Conversation
8757d44 to
b807ed7
Compare
| mapperBuilder | ||
| .addModule(kotlinModule()) | ||
| .changeDefaultPropertyInclusion { | ||
| JsonInclude.Value.construct(JsonInclude.Include.NON_EMPTY, JsonInclude.Include.NON_EMPTY) |
There was a problem hiding this comment.
content Inclusion was not set to NON_EMPTY before only value inclusion was, so that would not omit keys with empty values from getting serialized, potentially causing problems on deserialization -suggestion:
| JsonInclude.Value.construct(JsonInclude.Include.NON_EMPTY, JsonInclude.Include.NON_EMPTY) | |
| JsonInclude.Value.construct(JsonInclude.Include.NON_EMPTY, JsonInclude.Include.USE_DEFAULTS) |
|
Redis serialization changed drastically, we have a fallback to delete invalid keys - but lets add a migration step to manually flush the cache during deployment to be sure nothing which was written with spring boot 3 to redis will get deserialized to spring boot 4 - which could cause issues |
|
In Spring Boot 4.0 the interface moved to org.springframework.boot.EnvironmentPostProcessor. The old org.springframework.boot.env.EnvironmentPostProcessor is deprecated and will be removed in a later 4.x release. Recommendation: switch the import and the spring.factories key to org.springframework.boot.EnvironmentPostProcessor. While you are there, fix the KDoc, which says "server.port - 1000" while the code adds + 10000. |
|
Boot 4 renamed the servlet starter to spring-boot-starter-webmvc. The old name is only kept as a deprecated alias. Also, i18n, tracing and validation pull a full web starter (including Tomcat) as implementation into every consumer. Recommendation: switch to spring-boot-starter-webmvc. In library modules, prefer the narrower modules (spring-boot-webmvc, spring-webmvc) as compileOnly/implementation together with @ConditionalOnClass, so the platform does not decide the server for the application. |
|
In Boot 4, spring-boot-starter-test no longer contains the technology-specific test auto-configuration (@WebMvcTest, @DataJpaTest, @AutoConfigureMockMvc, …). The PR correctly adds spring-boot-webmvc-test for its own modules, but the platform test BOM still only exposes spring-boot-starter-test. Downstream projects will fail to compile. Recommendation: add the matching test starters as api where the platform claims support: spring-boot-starter-webmvc-test in platform-spring-test, and spring-boot-starter-data-jpa-test in platform-spring-test-jpa, which is otherwise almost empty after the QuickPerf removal. Alternatively, document spring-boot-starter-test-classic as a transition aid. |
|
think the whole platform should be moved to java 21? and java 17 artifact target can be changed |
|
as spring boot 4.0 is reaching eol soon - it would make sense to target 4.1 already |
|
add an "Upgrading to Spring Boot 4" section to the readme that covers:
Also use a major: commit/PR prefix so that Reckon bumps the major version. The previous upgrades used minor:/patch:. |
238df70 to
85b08b3
Compare
No description provided.