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...
May 13, 20241 min read14