Skip to content

Commit

Permalink
Merge pull request #25536 from yhao3/main
Browse files Browse the repository at this point in the history
Resolve deprecation warning for annotation attribute overrides in AuthorizedFeignClient
  • Loading branch information
DanielFran committed Mar 19, 2024
2 parents 3f8646e + ee3d99f commit a8ba4be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Expand Up @@ -49,24 +49,28 @@ public @interface AuthorizedFeignClient {
* An absolute URL or resolvable hostname (the protocol is optional).
* @return the URL.
*/
@AliasFor(annotation = FeignClient.class, attribute = "url")
String url() default "";

/**
* Whether 404s should be decoded instead of throwing FeignExceptions.
* @return true if 404s will be decoded; false otherwise.
*/
@AliasFor(annotation = FeignClient.class, attribute = "dismiss404")
boolean dismiss404() default false;

/**
* Fallback class for the specified Feign client interface. The fallback class must
* implement the interface annotated by this annotation and be a valid Spring bean.
* @return the fallback class for the specified Feign client interface.
*/
@AliasFor(annotation = FeignClient.class, attribute = "fallback")
Class<?> fallback() default void.class;

/**
* Path prefix to be used by all method-level mappings.
* @return the path prefix to be used by all method-level mappings.
*/
@AliasFor(annotation = FeignClient.class, attribute = "path")
String path() default "";
}
1 change: 1 addition & 0 deletions test-integration/scripts/99-build-changes.sh
Expand Up @@ -92,6 +92,7 @@ git -c color.ui=always diff --exit-code @~1 -- \
'generators/base-entity-changes' \
'generators/bootstrap-application-server' \
'generators/cucumber' \
'generators/feign-client' \
'generators/gatling' \
'generators/gradle' \
'generators/java' \
Expand Down

0 comments on commit a8ba4be

Please sign in to comment.