All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.icthh.xm.commons.client.feign.AuthorizedFeignClient Maven / Gradle / Ivy

There is a newer version: 4.0.12
Show newest version
package com.icthh.xm.commons.client.feign;

import com.icthh.xm.commons.client.feign.config.OAuth2InterceptedFeignConfiguration;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.core.annotation.AliasFor;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@FeignClient
public @interface AuthorizedFeignClient {

    @AliasFor(annotation = FeignClient.class, attribute = "name")
    String name() default "";

    @AliasFor(annotation = FeignClient.class, attribute = "configuration")
    Class[] configuration() default OAuth2InterceptedFeignConfiguration.class;

    String url() default "";

    boolean decode404() default false;

    Class fallback() default void.class;

    Class fallbackFactory() default void.class;

    String path() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy