Got this warning in my log:
o.s.c.annotation.AnnotationTypeMapping : Support for convention-based annotation attribute overrides is deprecated and will be removed in Spring Framework 6.1. Please annotate the 'endpoint' attribute in @org.springframework.boot.actuate.autoconfigure.cloudfoundry.EndpointCloudFoundryExtension with an appropriate @AliasFor declaration.
I guess this is an oversight that it's not annotated with @AliasFor.
Comment From: philwebb
Interesting, I wonder if we might find a few more of those.
Comment From: Tristan971
I'm not 100% certain that it's directly related, but I'm getting some of those via Hibernate's @URL validator too since 3.0-M4:
2022-09-26 15:32:23.243 WARN [ main] o.s.c.annotation.AnnotationTypeMapping : Support for convention-based annotation attribute overrides is deprecated and will be removed in Spring Framework 6.1. Please annotate the 'flags' attribute in @org.hibernate.validator.constraints.URL with an appropriate @AliasFor declaration -- for example, @AliasFor(annotation = jakarta.validation.constraints.Pattern.class).
2022-09-26 15:32:23.243 WARN [ main] o.s.c.annotation.AnnotationTypeMapping : Support for convention-based annotation attribute overrides is deprecated and will be removed in Spring Framework 6.1. Please annotate the 'groups' attribute in @org.hibernate.validator.constraints.URL with an appropriate @AliasFor declaration -- for example, @AliasFor(annotation = jakarta.validation.constraints.Pattern.class).
2022-09-26 15:32:23.243 WARN [ main] o.s.c.annotation.AnnotationTypeMapping : Support for convention-based annotation attribute overrides is deprecated and will be removed in Spring Framework 6.1. Please annotate the 'message' attribute in @org.hibernate.validator.constraints.URL with an appropriate @AliasFor declaration -- for example, @AliasFor(annotation = jakarta.validation.constraints.Pattern.class).
2022-09-26 15:32:23.243 WARN [ main] o.s.c.annotation.AnnotationTypeMapping : Support for convention-based annotation attribute overrides is deprecated and will be removed in Spring Framework 6.1. Please annotate the 'payload' attribute in @org.hibernate.validator.constraints.URL with an appropriate @AliasFor declaration -- for example, @AliasFor(annotation = jakarta.validation.constraints.Pattern.class).
2022-09-26 15:32:23.243 WARN [ main] o.s.c.annotation.AnnotationTypeMapping : Support for convention-based annotation attribute overrides is deprecated and will be removed in Spring Framework 6.1. Please annotate the 'regexp' attribute in @org.hibernate.validator.constraints.URL with an appropriate @AliasFor declaration -- for example, @AliasFor(annotation = jakarta.validation.constraints.Pattern.class).
Comment From: wilkinsona
@Tristan971 Thanks, but that isn't related to this issue. Can you please open a Spring Framework issue for those warnings? There's little point in it recommending a change to a Hibernate Validator annotation over which you have no control.
Comment From: Tristan971
Got it; done in https://github.com/spring-projects/spring-framework/issues/29206 and sorry for the noise then 😅
Comment From: wilkinsona
Thanks!
Comment From: bbulgarelli
Can I do this one?
Comment From: philwebb
Yes please @bbulgarelli, I'll assign it to you.
Comment From: philwebb
Closing in favor of PR #35716. Thanks @bbulgarelli!