kotlin-spring-boot
Installation
SKILL.md
Kotlin Spring Boot Patterns
Current Versions (verify before scaffolding new project)
| Component | Version | Notes |
|---|---|---|
| Spring Boot | 4.0.6 | First GA: 4.0.0 on 2025-11-20. Built on Spring Framework 7.0.7+, Java 17 baseline (Java 25 supported), Kotlin 2.2 minimum. |
| Kotlin | 2.3.21 | Required for Spring Boot 4. |
| Spring Framework | 7.0.7+ | Pulled transitively. |
If asked for an older Spring Boot 3.x scaffold (e.g. for legacy compat), use 3.5.x as the floor — never 3.4 or earlier.
Spring Boot 4.0 breaking changes to remember
- Jackson 3 is the default. Package moved from
com.fasterxml.jackson→tools.jackson. Usejackson-module-kotlinfrom the new coords; the old jackson 2.x still works but adds dual classpath. - HTTP clients namespace. Properties moved under
spring.http.clients.*(wasspring.http.client.*). - Kotlin compiler flag. Add
-Xannotation-default-target=param-propertytofreeCompilerArgsso@field:style annotations on data class params behave correctly with Spring's reflection. - AOT / native is first-class — keep reflection use minimal; avoid
kotlin-reflectoutside framework needs. - Removed in 4.0: legacy
WebMvcConfigurerdefaults that no-op'd,@EnableConfigurationPropertiesis no longer needed when using@ConfigurationPropertiesScan.