Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<bean class="Customer" ignore-annotations="false">
<field name="listOfmails">
<!-- typeArgumentIndex optional if there is only one type argument or it's an array -->
<containerElementType typeArgumentIndex="0">
<constraint annotation="javax.validation.constraints.Email"/>
</containerElementType>
</field>
<field name="mapOfListOfmails">
<containerElementType typeArgumentIndex="1">
<containerElementType typeArgumentIndex="0">
<constraint annotation="javax.validation.constraints.Email"/>
</containerElementType>
</containerElementType>
</field>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.