content: package vmware.services.organization;
  
  import io.micrometer.core.instrument.MeterRegistry;
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer;
  import org.springframework.boot.autoconfigure.AutoConfigureAfter;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
  import org.springframework.cloud.netflix.ribbon.RibbonAutoConfiguration;
  import org.springframework.cloud.netflix.ribbon.RibbonClients;
  import org.springframework.cloud.openfeign.EnableFeignClients;
  import org.springframework.context.annotation.Bean;
  import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
  import vmware.services.organization.config.RibbonConfiguration;
  import springfox.documentation.builders.ApiInfoBuilder;
  import springfox.documentation.builders.PathSelectors;
  import springfox.documentation.builders.RequestHandlerSelectors;
  import springfox.documentation.spi.DocumentationType;
  import springfox.documentation.spring.web.plugins.Docket;
  import springfox.documentation.swagger2.annotations.EnableSwagger2;
  
  @SpringBootApplication
  @EnableDiscoveryClient
  @EnableFeignClients
  @EnableMongoRepositories
  @EnableSwagger2
  @AutoConfigureAfter(RibbonAutoConfiguration.class)
  @RibbonClients(defaultConfiguration = RibbonConfiguration.class)
  public class OrganizationApplication {
  	
  	public static void main(String[] args) {
  		SpringApplication.run(OrganizationApplication.class, args);
  	}
  
  	@Bean
  	public Docket swaggerApi() {
  		return new Docket(DocumentationType.SWAGGER_2)
  				.select()
  					.apis(RequestHandlerSelectors.basePackage("vmware.services.organization.controller"))
  					.paths(PathSelectors.any())
  				.build()
  				.apiInfo(new ApiInfoBuilder().version("1.0").title("Organization API").description("Documentation Organization API v1.0").build());
  	}
  
  	@Bean
  	MeterRegistryCustomizer meterRegistryCustomizer(MeterRegistry meterRegistry){
  		return registry -> {
  			meterRegistry.config()
  					.commonTags("application", "organization");
  		};
  	}
  }
  