Skip to content

Custom Validation in Spring Boot example - Spring Boot custom validation annotation example - Spring Boot Rest API Validation

Notifications You must be signed in to change notification settings

bezkoder/spring-boot-custom-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Custom Validation example

Custom Validation annotation in Spring Boot example (with Rest API). We will implement 2 custom validation annotations:

  • @StrongPassword: check if string is 8 characters long and combination of uppercase letters, lowercase letters, numbers, special characters.
  • @PasswordMatching: check if the password and confirm password are the same.

For more detail, please visit:

Spring Boot Custom Validation example

More Practice:

Spring Boot Redis Cache example

Document Spring Boot Rest API with Swagger 3 example

Spring Boot File upload example with Multipart File

Spring Boot Pagination & Filter example | Spring JPA, Pageable

Spring Data JPA Sort/Order by multiple Columns | Spring Boot

Spring Boot Repository Unit Test with @DataJpaTest

Deploy Spring Boot App on AWS – Elastic Beanstalk

CRUD Rest API with Databases:

Spring Boot 3 REST API example

Spring Boot Rest API with H2

Spring Boot Rest API with MySQL

Spring Boot Rest API with PostgreSQL

Spring Boot Rest API with SQL Server

Spring Boot Rest API with MongoDB

Spring Boot Rest API with Cassandra

Spring Boot Rest API with Oracle

Exception Handling:

Spring Boot @ControllerAdvice & @ExceptionHandler example

@RestControllerAdvice example in Spring Boot

Security:

Spring Boot + Spring Security JWT Authentication & Authorization

Fullstack:

Vue + Spring Boot example

Angular 8 + Spring Boot example

Angular 10 + Spring Boot example

Angular 11 + Spring Boot example

Angular 12 + Spring Boot example

Angular 13 + Spring Boot example

Angular 14 + Spring Boot example

Angular 15 + Spring Boot example

React + Spring Boot + MySQL example

React + Spring Boot + PostgreSQL example

Run both Back-end & Front-end in one place:

Integrate Angular with Spring Boot Rest API

Integrate React.js with Spring Boot Rest API

Integrate Vue.js with Spring Boot Rest API

Run Spring Boot application

mvn spring-boot:run

Releases

No releases published

Packages

No packages published

Languages