@ -1,5 +1,5 @@
/ *
* Copyright 2012 - 201 8 the original author or authors .
* Copyright 2012 - 201 9 the original author or authors .
*
* Licensed under the Apache License , Version 2.0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
@ -27,6 +27,7 @@ import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration ;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean ;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass ;
import org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration ;
import org.springframework.context.annotation.Bean ;
import org.springframework.context.annotation.Configuration ;
import org.springframework.context.annotation.Import ;
@ -38,11 +39,12 @@ import org.springframework.core.annotation.Order;
* @author Jon Schneider
* @author Phillip Webb
* @author Stephane Nicoll
* @author Raheela Aslam
* @since 2.1 .0
* /
@Configuration
@AutoConfigureAfter ( { MetricsAutoConfiguration . class ,
SimpleMetricsExportAutoConfiguration . class } )
SimpleMetricsExportAutoConfiguration . class , RestTemplateAutoConfiguration . class } )
@ConditionalOnClass ( MeterRegistry . class )
@ConditionalOnBean ( MeterRegistry . class )
@Import ( { RestTemplateMetricsConfiguration . class , WebClientMetricsConfiguration . class } )