Skip to content

Commit

Permalink
Resolve deprecation warning for convention-based annotation attribute…
Browse files Browse the repository at this point in the history
… overrides
  • Loading branch information
yhao3 committed Mar 19, 2024
1 parent 58d6471 commit 28e6a5a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
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 "";
}

0 comments on commit 28e6a5a

Please sign in to comment.