JAVA-27191 Upgrade hibernate validator version in spring-mvc-basics-2

This commit is contained in:
anuragkumawat 2023-11-12 13:24:22 +05:30
parent 0db917b0ce
commit 21f73644b4
6 changed files with 10 additions and 10 deletions

View File

@ -42,7 +42,7 @@
<version>${jstl.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate-validator.version}</version>
</dependency>
@ -148,7 +148,7 @@
</build>
<properties>
<hibernate-validator.version>6.0.10.Final</hibernate-validator.version>
<hibernate-validator.version>8.0.1.Final</hibernate-validator.version>
<deploy-path>enter-location-of-server</deploy-path>
<org.thymeleaf-version>3.0.11.RELEASE</org.thymeleaf-version>
<groovy.version>2.4.12</groovy.version>

View File

@ -1,6 +1,6 @@
package com.baeldung.spring.controller;
import javax.validation.Valid;
import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

View File

@ -3,7 +3,7 @@ package com.baeldung.spring.controller;
import java.util.HashMap;
import java.util.Map;
import javax.validation.Valid;
import jakarta.validation.Valid;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;

View File

@ -8,7 +8,7 @@ import java.util.Set;
import javax.mail.MessagingException;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

View File

@ -1,7 +1,7 @@
package com.baeldung.spring.domain;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
public class Employee {

View File

@ -1,8 +1,8 @@
package com.baeldung.spring.domain;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
/**
* Created by Olga on 7/20/2016.