Three companion modules verifying and rewriting the Boot 4.1.1 / Framework 7.0.9 story for three older articles: the javax->jakarta.validation namespace fix plus Jakarta Validation 3.1 record-validation clarification, ETag/ conditional-request APIs re-verified unchanged plus the starter rename, and RestTemplate Basic Auth rebuilt on RestClient with the exchange() trap called out. 19 real passing tests generate every transcript quoted from the three companion articles. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EQNA6DJ9VgCtW6zhCE8Xud
11 lines
434 B
Plaintext
11 lines
434 B
Plaintext
$ curl -s -X POST localhost:8080/booking-record \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{"startDate":"2026-05-10","endDate":"2026-05-01"}'
|
|
|
|
HTTP status: 400
|
|
Body:
|
|
|
|
# Class-level @DateRangeValid, placed on the record's type declaration exactly as it would
|
|
# be on a class, is honoured the same way. The validator reads booking.startDate() /
|
|
# booking.endDate() (accessor methods) instead of getStartDate()/getEndDate().
|