This is the tutorial in Java: https://spring.io/guides/gs/validating-form-input/
I cloned the above repo and ran in local and it is working fine.
I’m trying to create the same with Kotlin. Project Link: https://github.com/imranpasha-tech/Kotlin-springweb-thymeleaf-example
This project is also working except it is unable to catch errors and forward them to view.
So, when I try to insert Null values against the allowed values it is supposed to show the validation errors on the form. But that is being redirected to 404
This empty form should be validated as shown in the tutorial. However, it is not working as expected. Instead it is being redirected to:
Origin tutorial screenshots: