<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/idiomatic-kotlin-applications-with-spring-boot-4-by-s-bastien-deleuze-spring-i-o-2026-wyo8mz3g3" -->

---
title: Idiomatic Kotlin applications with Spring Boot 4 by...
description: A Spring Framework engineer walks through building idiomatic Kotlin applications on Spring Boot 4, covering build tooling (Gradle Kotlin DSL as default, with...
canonical: https://daily.dev/posts/idiomatic-kotlin-applications-with-spring-boot-4-by-s-bastien-deleuze-spring-i-o-2026-wyo8mz3g3
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Idiomatic Kotlin applications with Spring Boot 4 by Sébastien Deleuze @ Spring I/O 2026 | daily.dev
og:description: A Spring Framework engineer walks through building idiomatic Kotlin applications on Spring Boot 4, covering build tooling (Gradle Kotlin DSL as default, with...
og:url: https://daily.dev/posts/idiomatic-kotlin-applications-with-spring-boot-4-by-s-bastien-deleuze-spring-i-o-2026-wyo8mz3g3
og:image: https://api.daily.dev/og/posts/Wyo8MZ3g3.png
og:image:alt: Idiomatic Kotlin applications with Spring Boot 4 by Sébastien Deleuze @ Spring I/O 2026
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Idiomatic Kotlin applications with Spring Boot 4 by Sébastien Deleuze @ Spring I/O 2026

**[Spring I/O](https://daily.dev/sources/springio)** · 40 min read · 0 upvotes · 0 comments

## Summary

A Spring Framework engineer walks through building idiomatic Kotlin applications on Spring Boot 4, covering build tooling (Gradle Kotlin DSL as default, with Amper and Declarative Gradle as future experimental options), the Kotlin 2.2 baseline requirement, and the importance of upgrading since Spring Boot 3 loses open-source support in June 2026. Key technical points include the new J Specify-based null safety spanning the whole Spring portfolio, a Kotlin 2.2/2.4 annotation fix for Jakarta validation on data classes, guidance to prefer WebMVC with virtual threads over WebFlux for most Kotlin workloads, the new Bean Registrar DSL for programmatic configuration, refined Kotlin serialization activation rules in Spring Boot 4, why idiomatic JPA (val properties, data classes) conflicts with idiomatic Kotlin, a fix for coroutine context propagation with Micrometer, and a roadmap for Spring AI 2.0 (May 2026) through 3.0 including a future unified virtual-thread stack and Kotlin Flow adapters. AOT cache with Java 25 is also highlighted as delivering 2x (soon 5x) faster startup times.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=wcVg4fqYIy8>

## Questions this post answers

### When does Spring Boot 3 lose open source support and what happens if I don't upgrade?

Spring Boot 3 goes out of open source support in June 2026. After that date, workloads still on Spring Boot 3 without a paid support contract stop receiving security fixes, so all Spring Boot 3 applications need to move to Spring Boot 4 by then to keep getting open source security patches.

_Track Spring Boot upgrade deadlines on daily.dev before your team gets stuck without security patches._

### Why doesn't Jakarta Bean Validation work on Kotlin data class properties in Spring Boot?

By default Kotlin translates validation annotations like @Email onto the constructor parameter rather than the field, and Hibernate Validator and other Jakarta validation implementations only look at the field, so the annotation is silently ignored. The fix is annotating with @field:Email, or upgrading to Kotlin 2.2+ where the new @Target default (param, properties) fixes this, becoming the automatic default in Kotlin 2.4.

_Developers debugging silent Kotlin validation failures can follow Spring and Kotlin version guidance like this on daily.dev._

### Should I use JPA with Kotlin data classes for my entities?

No, idiomatic JPA is not compatible with idiomatic Kotlin: JPA entities should avoid data classes because their generated equals/hashCode semantics conflict with JPA requirements, and mutable var properties are needed rather than val, since JPA was not designed around immutable properties. The Kotlin team has published detailed blog posts validated by JPA experts explaining this; alternatives like Spring Data JDBC or Exposed work naturally with idiomatic Kotlin data classes instead.

_Compare persistence options like JPA versus Spring Data JDBC for Kotlin projects using resources on daily.dev._

## Similar posts on daily.dev

- [Spring Boot 4: Leaner, Safer Apps and a New Kotlin Baseline](https://daily.dev/posts/spring-boot-4-leaner-safer-apps-and-a-new-kotlin-baseline-o5dkpro0n) · JetBrains · 30 upvotes · 0 comments
- [Spring Boot 4.1 Adds gRPC Auto-Configuration, SSRF Mitigation, and Kotlin 2.3 Support](https://daily.dev/posts/spring-boot-4-1-adds-grpc-auto-configuration-ssrf-mitigation-and-kotlin-2-3-support-opikjwwdi) · InfoQ · 12 upvotes · 0 comments
- [Java Weekly, Issue 622](https://daily.dev/posts/java-weekly-issue-622-yhsvtmyww) · Baeldung · 3 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#spring](https://daily.dev/tags/spring), [#kotlin](https://daily.dev/tags/kotlin), [#spring-boot](https://daily.dev/tags/spring-boot), [#spring-ai](https://daily.dev/tags/spring-ai)

[View this post on daily.dev](https://daily.dev/posts/idiomatic-kotlin-applications-with-spring-boot-4-by-s-bastien-deleuze-spring-i-o-2026-wyo8mz3g3)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Idiomatic Kotlin applications with Spring Boot 4 by Sébastien Deleuze @ Spring I/O 2026","url":"https://daily.dev/posts/idiomatic-kotlin-applications-with-spring-boot-4-by-s-bastien-deleuze-spring-i-o-2026-wyo8mz3g3","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/idiomatic-kotlin-applications-with-spring-boot-4-by-s-bastien-deleuze-spring-i-o-2026-wyo8mz3g3"},"datePublished":"2026-09-27T07:26:34.322Z","dateModified":"2026-09-27T07:34:34.382Z","description":"A Spring Framework engineer walks through building idiomatic Kotlin applications on Spring Boot 4, covering build tooling (Gradle Kotlin DSL as default, with...","image":"https://i.ytimg.com/vi/wcVg4fqYIy8/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/wcVg4fqYIy8/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Spring I/O","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Spring I/O","logo":"https://media.daily.dev/image/upload/s--e-TcwM9B--/f_auto,q_auto/v1790493985/logos/springio?_a=BAMAMicg0","url":"https://daily.dev/sources/springio"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/idiomatic-kotlin-applications-with-spring-boot-4-by-s-bastien-deleuze-spring-i-o-2026-wyo8mz3g3","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,spring,kotlin,spring-boot,spring-ai","timeRequired":"PT40M","video":{"@type":"VideoObject","name":"Idiomatic Kotlin applications with Spring Boot 4 by Sébastien Deleuze @ Spring I/O 2026","description":"A Spring Framework engineer walks through building idiomatic Kotlin applications on Spring Boot 4, covering build tooling (Gradle Kotlin DSL as default, with...","thumbnailUrl":"https://i.ytimg.com/vi/wcVg4fqYIy8/sddefault.jpg","uploadDate":"2026-09-27T07:26:34.322Z","duration":"PT40M","url":"https://api.daily.dev/r/Wyo8MZ3g3","embedUrl":"https://www.youtube.com/embed/wcVg4fqYIy8"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Spring I/O","item":"https://daily.dev/sources/springio"},{"@type":"ListItem","position":3,"name":"Idiomatic Kotlin applications with Spring Boot 4 by Sébastien Deleuze @ Spring I/O 2026"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/idiomatic-kotlin-applications-with-spring-boot-4-by-s-bastien-deleuze-spring-i-o-2026-wyo8mz3g3#faq","mainEntity":[{"@type":"Question","name":"When does Spring Boot 3 lose open source support and what happens if I don't upgrade?","acceptedAnswer":{"@type":"Answer","text":"Spring Boot 3 goes out of open source support in June 2026. After that date, workloads still on Spring Boot 3 without a paid support contract stop receiving security fixes, so all Spring Boot 3 applications need to move to Spring Boot 4 by then to keep getting open source security patches. Track Spring Boot upgrade deadlines on daily.dev before your team gets stuck without security patches."}},{"@type":"Question","name":"Why doesn't Jakarta Bean Validation work on Kotlin data class properties in Spring Boot?","acceptedAnswer":{"@type":"Answer","text":"By default Kotlin translates validation annotations like @Email onto the constructor parameter rather than the field, and Hibernate Validator and other Jakarta validation implementations only look at the field, so the annotation is silently ignored. The fix is annotating with @field:Email, or upgrading to Kotlin 2.2+ where the new @Target default (param, properties) fixes this, becoming the automatic default in Kotlin 2.4. Developers debugging silent Kotlin validation failures can follow Spring and Kotlin version guidance like this on daily.dev."}},{"@type":"Question","name":"Should I use JPA with Kotlin data classes for my entities?","acceptedAnswer":{"@type":"Answer","text":"No, idiomatic JPA is not compatible with idiomatic Kotlin: JPA entities should avoid data classes because their generated equals/hashCode semantics conflict with JPA requirements, and mutable var properties are needed rather than val, since JPA was not designed around immutable properties. The Kotlin team has published detailed blog posts validated by JPA experts explaining this; alternatives like Spring Data JDBC or Exposed work naturally with idiomatic Kotlin data classes instead. Compare persistence options like JPA versus Spring Data JDBC for Kotlin projects using resources on daily.dev."}}]}
```

