| File was renamed from ruoyi-common/ruoyi-common-security/src/main/java/com/ruoyi/common/security/annotation/EnableRyFeignClients.java |
| | |
| | | package com.ruoyi.common.security.annotation;
|
| | |
|
| | | import org.springframework.cloud.openfeign.EnableFeignClients;
|
| | | import org.springframework.core.annotation.AliasFor;
|
| | | import java.lang.annotation.*;
|
| | |
|
| | | /**
|
| | | * 自定义feign注解
|
| | | * 添加basePackages路径
|
| | | * |
| | | * @author ruoyi
|
| | | */
|
| | | @Target(ElementType.TYPE)
|
| | | @Retention(RetentionPolicy.RUNTIME)
|
| | | @Documented
|
| | | @EnableFeignClients
|
| | | public @interface EnableRyFeignClients
|
| | | {
|
| | | String[] value() default {};
|
| | |
|
| | | @AliasFor(annotation = EnableFeignClients.class, attribute = "basePackages")
|
| | | String[] basePackages() default { "com.ruoyi" };
|
| | |
|
| | | Class<?>[] basePackageClasses() default {};
|
| | |
|
| | | Class<?>[] defaultConfiguration() default {};
|
| | |
|
| | | Class<?>[] clients() default {};
|
| | | }
|
| | | package com.sgd.common.security.annotation; |
| | | |
| | | import org.springframework.cloud.openfeign.EnableFeignClients; |
| | | import org.springframework.core.annotation.AliasFor; |
| | | import java.lang.annotation.*; |
| | | |
| | | /** |
| | | * 自定义feign注解 |
| | | * 添加basePackages路径 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Target(ElementType.TYPE) |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Documented |
| | | @EnableFeignClients |
| | | public @interface EnableRyFeignClients |
| | | { |
| | | String[] value() default {}; |
| | | |
| | | @AliasFor(annotation = EnableFeignClients.class, attribute = "basePackages") |
| | | String[] basePackages() default { "com.sgd" }; |
| | | |
| | | Class<?>[] basePackageClasses() default {}; |
| | | |
| | | Class<?>[] defaultConfiguration() default {}; |
| | | |
| | | Class<?>[] clients() default {}; |
| | | } |