|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.ccsens.tall; |
|
|
|
|
|
|
|
import com.ccsens.cloudutil.ribbon.RibbonConfiguration; |
|
|
|
import com.ccsens.util.JsonResponse; |
|
|
|
import com.ccsens.util.PropUtil; |
|
|
|
import com.ccsens.util.RestTemplateUtil; |
|
|
@ -12,6 +13,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
|
|
import org.springframework.boot.web.servlet.ServletComponentScan; |
|
|
|
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; |
|
|
|
import org.springframework.cloud.openfeign.EnableFeignClients; |
|
|
|
import org.springframework.context.annotation.ComponentScan; |
|
|
|
import org.springframework.context.annotation.FilterType; |
|
|
|
import org.springframework.scheduling.annotation.EnableAsync; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
@ -28,7 +31,9 @@ import java.io.File; |
|
|
|
//开启断路器功能
|
|
|
|
@EnableCircuitBreaker |
|
|
|
@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign") |
|
|
|
@SpringBootApplication(scanBasePackages = "com.ccsens") |
|
|
|
//@SpringBootApplication(scanBasePackages = "com.ccsens")
|
|
|
|
@SpringBootApplication |
|
|
|
@ComponentScan(basePackages = "com.ccsens", excludeFilters = { @ComponentScan.Filter(type= FilterType.ASSIGNABLE_TYPE, value = RibbonConfiguration.class)}) |
|
|
|
public class TallApplication implements CommandLineRunner { |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|