How to make Thymeleaf rendering fail when binding failure occurs? -


in thymeleaf, when binding failure absence of property,

the property replaced empty string.

how make thymeleaf fail render in case?

update:

this sample project i'm working on:

https://github.com/izeye/samples-spring-boot-branches/tree/thymeleaf

when run homecontrollertests.test(),

i expect i've got exception

because did not provide age property in model.

but it's rendered empty string.

i agree it's nice behavior in general

but in current situation,

i hope there's no missing property when rendering.


Comments