Skip to content

Instantly share code, notes, and snippets.

View alaabenalidev's full-sized avatar

Alaa Eddine Ben Ali alaabenalidev

  • tunisia
View GitHub Profile
@alaabenalidev
alaabenalidev / AppConfig.java
Created February 19, 2024 23:10 — forked from aoudiamoncef/AppConfig.java
Spring Boot Custom Bean Validations with Jakarta ConstraintValidator, Grouping Validation Constraints, GroupSequence and i18n messages
package com.maoudia;
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
/**
* The {@code AppConfig} class configures beans for message source and validator factory.