常用注解

182 阅读1分钟

@EnableDiscoveryClient

@SpringBootApplication

//指定feign的接口地址

@EnableFeignClients(basePackages = {"com.mutai.sbc"})

@EnableHystrix

@EnableSwagger2Doc

//指定Feign的Controller的扫描包

@ComponentScan(basePackages={"com.mutai.auth"})

//指定mybatis的地址

@MapperScan(basePackages = {"com.mutai.auth.web.dao"})

@PropertySource(value = {"api-application.properties"}, factory = CompositePropertySourceFactory.class)