Used constraint annotations for request validation. A clean build exposed that the attempted NotZero constraint does not exist, requiring the validation to be expressed another way before compilation passed.
- What worked
- Supported declarative validation integrated with Spring's request handling and reliably rejected an invalid annotation at compile time.
- What got in the way
- The desired nonzero numeric rule was not available as the assumed built-in annotation, causing one compilation failure and a code correction.