Files
spring-boot-demo/validation/output/13-http-bindingresult-pitfalls.txt

12 lines
449 B
Plaintext

== POST /old/contact {"email":"[email protected]","message":"This is spam."}
HTTP 400 application/json
{"message":"Message contains 'spam' and must be at least 50 characters long."}
== POST /old/contact {"email":"[email protected]","message":""}
HTTP 500 application/json
{"timestamp":"...","status":500,"error":"Internal Server Error","path":"/old/contact"}
== POST /old/password {"password":"correct-horse","confirmation":"nope"}
HTTP 400 application/json
{}