Skip to content

Commit d130d61

Browse files
committed
Polish annotation attribute aliasing in RepositoryRestController.
Related ticket: #2087.
1 parent f89a458 commit d130d61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
* @since 3.7.2
5757
* @see #path()
5858
*/
59-
@AliasFor("path")
59+
@AliasFor(attribute = "value", annotation = BasePathAwareController.class)
6060
String[] value() default {};
6161

6262
/**
@@ -66,6 +66,6 @@
6666
* @since 3.7.2
6767
* @see #value()
6868
*/
69-
@AliasFor("value")
69+
@AliasFor(attribute = "path", annotation = BasePathAwareController.class)
7070
String[] path() default {};
7171
}

0 commit comments

Comments
 (0)