---
title: "Discussion on \"Bind empty String as null in Spring Boot\" | Hashnode"
description: "Discussion on \"Bind empty String as null in Spring Boot\". When a form is submitted with an input field without any data, the browser submits it as an empty string \"\". That's why Spring Boot writes this to the data object exactly this way - with a StringTrimmerEditor configuration in place, we can bind the v..."
url: "https://hashnode.com/posts/bind-empty-string-as-null-in-spring-boot/6641df9f462303928ae198b4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Bind empty String as null in Spring Boot](https://bootifyio.hashnode.dev/bind-empty-string-as-null-in-spring-boot?utm_source=hashnode&utm_medium=feed)

When a form is submitted with an input field without any data, the browser submits it as an empty string "". That's why Spring Boot writes this to the data object exactly this way - with a StringTrimmerEditor configuration in place, we can bind the v...

May 13, 2024 · 1 min read · bootifyio.hashnode.dev  
Read the article

-   [#springboot](https://hashnode.com/tag/springboot)
-   [#thymeleaf](https://hashnode.com/tag/thymeleaf)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Thomas Surmann](https://hashnode.com/@Bootify)

@Bootify · Berlin, Germany

  
[View profile](https://hashnode.com/@Bootify)

Rapid Spring Boot Application Development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
