Commit db02ece8 by linxu

feat: 添加feignclient配置扫描

parent 8137cf9d
...@@ -8,12 +8,14 @@ import org.springframework.cloud.openfeign.EnableFeignClients; ...@@ -8,12 +8,14 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType; import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.PropertySource; import org.springframework.context.annotation.PropertySource;
@EnableFeignClients @EnableFeignClients
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@ComponentScan(basePackages = {"com.keymobile.sso", @ComponentScan(basePackages = {"com.keymobile.sso",
"com.keymobile.config.logging", "com.keymobile.config.naming", "com.keymobile.config.logging", "com.keymobile.config.naming",
"com.keymobile.config.redisclient", "com.keymobile.authservice.component"}, excludeFilters = { "com.keymobile.config.redisclient", "com.keymobile.authservice.component",
"com.keymobile.config.feignclient"}, excludeFilters = {
@ComponentScan.Filter(type= FilterType.ASSIGNABLE_TYPE, value= SecurityConfig.class) @ComponentScan.Filter(type= FilterType.ASSIGNABLE_TYPE, value= SecurityConfig.class)
}) })
@PropertySource(value = "classpath:/application.yml") @PropertySource(value = "classpath:/application.yml")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment