Article Directory
1. Place of use
- post
- put
2. Unusable places
- Here @NotNull is effective when stockHolderArray is null, but the internal verification of StockHolderInfo is not effective.
- The validation annotation @Valid needs to be added to the array of objects here
, then the validation-related annotations inside StockHolderInfo will take effect.