check list empty using annotations in java code example
Example: annotation spring notnull
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
with '@validateur' in application