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 {}; }