Why a missing note title returned 500 in Spring Boot
Trace a missing JSON field to the service, return 400 with @NotBlank and @Valid, and verify the fix with MockMvc and embedded Tomcat.
spring-mvc / bean-validation / mockmvc↗
Practical notes on Java, Spring, testing, and software engineering, with working examples and source references.
All articles →Trace a missing JSON field to the service, return 400 with @NotBlank and @Valid, and verify the fix with MockMvc and embedded Tomcat.