From 1205ef1eb83c5f3e2ff56b4b217dce8bca25990f Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Thu, 14 Jul 2022 17:45:26 +0200 Subject: [PATCH] Polish annotation attribute aliasing in RepositoryRestController. Related ticket: #2157. --- .../data/rest/webmvc/RepositoryRestController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java index e141d4928..25d7d0563 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java @@ -56,7 +56,7 @@ public @interface RepositoryRestController { * @since 3.7.2 * @see #path() */ - @AliasFor("path") + @AliasFor(attribute = "value", annotation = BasePathAwareController.class) String[] value() default {}; /** @@ -66,6 +66,6 @@ public @interface RepositoryRestController { * @since 3.7.2 * @see #value() */ - @AliasFor("value") + @AliasFor(attribute = "path", annotation = BasePathAwareController.class) String[] path() default {}; }