|
|
@@ -0,0 +1,21 @@
|
|
|
+package space.anyi.user.autoconfig;
|
|
|
+
|
|
|
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
+import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
|
+import org.springframework.context.annotation.Configuration;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ProjectName: springboot-autoconfiguration-learn
|
|
|
+ * @FileName: MsUserAutoconfig
|
|
|
+ * @Author: 杨逸
|
|
|
+ * @Data:2025/10/13 21:43
|
|
|
+ * @Description: 配置类
|
|
|
+ */
|
|
|
+@Configuration(proxyBeanMethods = false)
|
|
|
+@ConditionalOnClass(MsUserFeignMark.class)
|
|
|
+@EnableFeignClients(basePackageClasses = MsUserAutoconfig.class)
|
|
|
+@EnableConfigurationProperties(MsUserConfig.class)
|
|
|
+public class MsUserAutoconfig {
|
|
|
+
|
|
|
+}
|