Categories
Java Java Bean Validation

Dependencies

We are going to use Maven as build tool, we will discuss this in its context.

  1. As per JSR380 specification of set of APIs provided by following
<dependency>

    <groupId>javax.validation</groupId>

    <artifactId>validation-api</artifactId>

    <version>2.0.1.Final</version>

</dependency>

2. Hibernate validator is reference implementation for above specification.

<dependency>
	    <groupId>org.hibernate.validator</groupId>
	    <artifactId>hibernate-validator</artifactId>
	    <version>6.0.13.Final</version>
</dependency>

3. Expression language dependencies to be able to write expressions in validation messages.

<dependency>
	    <groupId>org.glassfish</groupId>
	    <artifactId>javax.el</artifactId>
	    <version>3.0.0</version>
</dependency

Leave a comment

Design a site like this with WordPress.com
Get started