@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.one"})
//@EnableFeignClients(basePackageClasses = {IUserFeign.class})
@ComponentScan( basePackages = { "com.one.*.api","com.one.*.controller"} )
public class PlatformAuthApplication {
public static void main(String[] args) {
SpringApplication.run(PlatformAuthApplication.class,args);
}
}
@EnableFeignClients(basePackages = {"com.one"})
@EnableFeignClients(basePackageClasses = {IUserFeign.class})
两者等价
区别
basePackages 包路径
basePackageClasses 类路径