From 78c8ffa801022255829929028f86bb2dd05cc9ff Mon Sep 17 00:00:00 2001 From: Kevin Wise Date: Wed, 19 Jun 2024 22:30:32 -0700 Subject: [PATCH] switch to `@Requires(resources = "classpath:org/hibernate/validator/ValidationMessages.properties")` --- .../hibernate/validator/HibernateMessageBundle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-validator/src/main/java/io/micronaut/configuration/hibernate/validator/HibernateMessageBundle.java b/hibernate-validator/src/main/java/io/micronaut/configuration/hibernate/validator/HibernateMessageBundle.java index 5a292640..0ad6d9bc 100644 --- a/hibernate-validator/src/main/java/io/micronaut/configuration/hibernate/validator/HibernateMessageBundle.java +++ b/hibernate-validator/src/main/java/io/micronaut/configuration/hibernate/validator/HibernateMessageBundle.java @@ -6,7 +6,7 @@ import jakarta.inject.Singleton; @Singleton -@Requires(bean = MicronautHibernateValidator.class) +@Requires(resources = "classpath:org/hibernate/validator/ValidationMessages.properties") public class HibernateMessageBundle extends ResourceBundleMessageSource { public HibernateMessageBundle() { super("org.hibernate.validator.ValidationMessages");