All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.jfunc.common.http.scan.package-info Maven / Gradle / Ivy

package top.jfunc.common.http.scan;
/**

 参照以下配置方式配置SmartHttpClient和HttpService对接口的扫描

 @Bean
 public SmartHttpClient smartHttpClient(){
     Config config = Config.defaultConfig()
     .setBaseUrl("http://localhost:9999/http-server-test/")
     .addInterceptor(new CatMonitorInterceptor());
     return new SmartHttpClientImpl().setConfig(config);
 }
 @Bean
 public HttpServiceCreator httpServiceCreator(SmartHttpClient smartHttpClient){
    return new HttpServiceCreator().setSmartHttpClient(smartHttpClient);
 }
 @Bean
 public HttpServiceScanConfigure httpServiceScanConfigure(){
     HttpServiceScanConfigure httpServiceScanConfigure = new HttpServiceScanConfigure(httpServiceCreator(smartHttpClient()));
     httpServiceScanConfigure.setAnnotationClassScan(HttpService.class);
     httpServiceScanConfigure.setScanPackages("top.jfunc.network.controller.client");
     return httpServiceScanConfigure;
 }

 */




© 2015 - 2025 Weber Informatics LLC | Privacy Policy