Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
49fdcae8
Unverified
Commit
49fdcae8
authored
Sep 25, 2017
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile fixes for boot 2
parent
56395596
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
45 additions
and
166 deletions
+45
-166
spring-cloud-netflix.adoc
docs/src/main/asciidoc/spring-cloud-netflix.adoc
+1
-1
ArchaiusAutoConfiguration.java
...ork/cloud/netflix/archaius/ArchaiusAutoConfiguration.java
+1
-1
ArchaiusEndpoint.java
...ingframework/cloud/netflix/archaius/ArchaiusEndpoint.java
+2
-2
HystrixCircuitBreakerConfiguration.java
...d/netflix/hystrix/HystrixCircuitBreakerConfiguration.java
+6
-22
RoutesEndpoint.java
...rg/springframework/cloud/netflix/zuul/RoutesEndpoint.java
+3
-3
ZuulProxyAutoConfiguration.java
...mework/cloud/netflix/zuul/ZuulProxyAutoConfiguration.java
+1
-1
ZuulServerAutoConfiguration.java
...ework/cloud/netflix/zuul/ZuulServerAutoConfiguration.java
+6
-6
DefaultCounterFactory.java
...ork/cloud/netflix/zuul/metrics/DefaultCounterFactory.java
+5
-6
ZuulHandlerMapping.java
...gframework/cloud/netflix/zuul/web/ZuulHandlerMapping.java
+1
-1
spring.factories
...netflix-core/src/main/resources/META-INF/spring.factories
+0
-4
OkHttpClientConfigurationTests.java
...rk/cloud/netflix/test/OkHttpClientConfigurationTests.java
+6
-7
HttpClientRibbonCommandIntegrationTests.java
...route/apache/HttpClientRibbonCommandIntegrationTests.java
+1
-1
OkHttpRibbonCommandIntegrationTests.java
...ers/route/okhttp/OkHttpRibbonCommandIntegrationTests.java
+1
-1
RestClientRibbonCommandIntegrationTests.java
...e/restclient/RestClientRibbonCommandIntegrationTests.java
+1
-1
RibbonCommandFallbackTests.java
...uul/filters/route/support/RibbonCommandFallbackTests.java
+1
-1
ZuulProxyTestBase.java
...netflix/zuul/filters/route/support/ZuulProxyTestBase.java
+1
-1
DefaultCounterFactoryTests.java
...loud/netflix/zuul/metrics/DefaultCounterFactoryTests.java
+4
-4
ZuulMetricsApplicationTests.java
...oud/netflix/zuul/metrics/ZuulMetricsApplicationTests.java
+3
-4
ZuulHandlerMappingTests.java
...ework/cloud/netflix/zuul/web/ZuulHandlerMappingTests.java
+1
-1
pom.xml
spring-cloud-netflix-dependencies/pom.xml
+0
-92
EurekaSampleApplication.java
.../cloud/netflix/eureka/sample/EurekaSampleApplication.java
+0
-6
No files found.
docs/src/main/asciidoc/spring-cloud-netflix.adoc
View file @
49fdcae8
...
...
@@ -276,7 +276,7 @@ Spring Cloud will auto configure a transport client based on Spring
----
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-
eureka
</artifactId>
<artifactId>spring-cloud-starter-
netflix-eureka-client
</artifactId>
<exclusions>
<exclusion>
<groupId>com.sun.jersey</groupId>
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/archaius/ArchaiusAutoConfiguration.java
View file @
49fdcae8
...
...
@@ -33,7 +33,7 @@ import org.apache.commons.configuration.event.ConfigurationListener;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.autoconfigure.endpoint.ConditionalOnEnabledEndpoint
;
import
org.springframework.boot.actuate.autoconfigure.endpoint.
condition.
ConditionalOnEnabledEndpoint
;
import
org.springframework.boot.actuate.health.Health
;
import
org.springframework.boot.autoconfigure.AutoConfigureOrder
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/archaius/ArchaiusEndpoint.java
View file @
49fdcae8
...
...
@@ -24,11 +24,11 @@ import org.apache.commons.configuration.AbstractConfiguration;
import
org.apache.commons.configuration.Configuration
;
import
org.apache.commons.configuration.EnvironmentConfiguration
;
import
org.apache.commons.configuration.SystemConfiguration
;
import
org.springframework.boot.endpoint.Endpoint
;
import
org.springframework.boot.endpoint.ReadOperation
;
import
com.netflix.config.ConcurrentCompositeConfiguration
;
import
com.netflix.config.ConfigurationManager
;
import
org.springframework.boot.actuate.endpoint.annotation.Endpoint
;
import
org.springframework.boot.actuate.endpoint.annotation.ReadOperation
;
/**
* @author Dave Syer
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/hystrix/HystrixCircuitBreakerConfiguration.java
View file @
49fdcae8
...
...
@@ -16,36 +16,19 @@
package
org
.
springframework
.
cloud
.
netflix
.
hystrix
;
import
java.io.IOException
;
import
java.util.Arrays
;
import
java.util.HashSet
;
import
java.util.Map
;
import
java.util.Set
;
import
com.netflix.hystrix.Hystrix
;
import
com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect
;
import
com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet
;
import
org.apache.catalina.core.ApplicationContext
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.DisposableBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.health.Health
;
import
org.springframework.boot.actuate.metrics.GaugeService
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.cloud.client.actuator.HasFeatures
;
import
org.springframework.cloud.client.actuator.NamedFeature
;
import
org.springframework.context.SmartLifecycle
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.Ordered
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.netflix.hystrix.Hystrix
;
import
com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect
;
import
com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsPoller
;
import
com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsPoller.MetricsAsJsonPollerListener
;
import
com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet
;
/**
* @author Spencer Gibb
...
...
@@ -87,7 +70,8 @@ public class HystrixCircuitBreakerConfiguration {
}
}
@Configuration
//FIXME: 2.0.0
/*@Configuration
@ConditionalOnProperty(value = "hystrix.metrics.enabled", matchIfMissing = true)
@ConditionalOnClass({ HystrixMetricsPoller.class, GaugeService.class })
@EnableConfigurationProperties(HystrixMetricsProperties.class)
...
...
@@ -194,7 +178,7 @@ public class HystrixCircuitBreakerConfiguration {
callback.run();
}
}
}
*/
/**
* {@link DisposableBean} that makes sure that Hystrix internal state is cleared when
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/RoutesEndpoint.java
View file @
49fdcae8
...
...
@@ -21,9 +21,9 @@ import java.util.Map;
import
java.util.Objects
;
import
java.util.Set
;
import
org.springframework.boot.
endpoint
.Endpoint
;
import
org.springframework.boot.
endpoint
.ReadOperation
;
import
org.springframework.boot.
endpoint
.WriteOperation
;
import
org.springframework.boot.
actuate.endpoint.annotation
.Endpoint
;
import
org.springframework.boot.
actuate.endpoint.annotation
.ReadOperation
;
import
org.springframework.boot.
actuate.endpoint.annotation
.WriteOperation
;
import
org.springframework.cloud.netflix.zuul.filters.Route
;
import
org.springframework.cloud.netflix.zuul.filters.RouteLocator
;
import
org.springframework.context.ApplicationEventPublisher
;
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/ZuulProxyAutoConfiguration.java
View file @
49fdcae8
...
...
@@ -22,7 +22,7 @@ import java.util.List;
import
org.apache.http.impl.client.CloseableHttpClient
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.autoconfigure.endpoint.ConditionalOnEnabledEndpoint
;
import
org.springframework.boot.actuate.autoconfigure.endpoint.
condition.
ConditionalOnEnabledEndpoint
;
import
org.springframework.boot.actuate.health.Health
;
import
org.springframework.boot.actuate.trace.TraceRepository
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnBean
;
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/ZuulServerAutoConfiguration.java
View file @
49fdcae8
...
...
@@ -21,15 +21,14 @@ import java.util.Collection;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.metrics.CounterService
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.boot.autoconfigure.web.ServerProperties
;
import
org.springframework.boot.autoconfigure.web.servlet.error.ErrorController
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.web.servlet.ServletRegistrationBean
;
import
org.springframework.boot.web.servlet.error.ErrorController
;
import
org.springframework.cloud.client.actuator.HasFeatures
;
import
org.springframework.cloud.client.discovery.event.HeartbeatEvent
;
import
org.springframework.cloud.client.discovery.event.HeartbeatMonitor
;
...
...
@@ -198,13 +197,14 @@ public class ZuulServerAutoConfiguration {
}
@Configuration
@ConditionalOnClass
(
CounterService
.
class
)
//FIXME: 2.0.0
// @ConditionalOnClass(CounterService.class)
protected
static
class
ZuulCounterFactoryConfiguration
{
@Bean
@ConditionalOnBean
(
CounterService
.
class
)
public
CounterFactory
counterFactory
(
CounterService
counterService
)
{
return
new
DefaultCounterFactory
(
counterService
);
//
@ConditionalOnBean(CounterService.class)
public
CounterFactory
counterFactory
(
/*CounterService counterService*/
)
{
return
new
DefaultCounterFactory
(
/*counterService*/
);
}
}
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/metrics/DefaultCounterFactory.java
View file @
49fdcae8
...
...
@@ -16,8 +16,6 @@
package
org
.
springframework
.
cloud
.
netflix
.
zuul
.
metrics
;
import
org.springframework.boot.actuate.metrics.CounterService
;
import
com.netflix.zuul.monitoring.CounterFactory
;
/**
...
...
@@ -27,14 +25,15 @@ import com.netflix.zuul.monitoring.CounterFactory;
*/
public
class
DefaultCounterFactory
extends
CounterFactory
{
private
final
CounterService
counterService
;
//FIXME: 2.0.0
// private final CounterService counterService;
public
DefaultCounterFactory
(
CounterService
counterService
)
{
this
.
counterService
=
counterService
;
public
DefaultCounterFactory
(
/*CounterService counterService*/
)
{
/*this.counterService = counterService;*/
}
@Override
public
void
increment
(
String
name
)
{
counterService
.
increment
(
name
);
//
counterService.increment(name);
}
}
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/web/ZuulHandlerMapping.java
View file @
49fdcae8
...
...
@@ -21,7 +21,7 @@ import java.util.Collection;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.boot.
autoconfigure.
web.servlet.error.ErrorController
;
import
org.springframework.boot.web.servlet.error.ErrorController
;
import
org.springframework.cloud.netflix.zuul.filters.RefreshableRouteLocator
;
import
org.springframework.cloud.netflix.zuul.filters.Route
;
import
org.springframework.cloud.netflix.zuul.filters.RouteLocator
;
...
...
spring-cloud-netflix-core/src/main/resources/META-INF/spring.factories
View file @
49fdcae8
...
...
@@ -8,12 +8,9 @@ org.springframework.cloud.netflix.hystrix.HystrixAutoConfiguration,\
org.springframework.cloud.netflix.hystrix.security.HystrixSecurityAutoConfiguration,\
org.springframework.cloud.netflix.ribbon.RibbonAutoConfiguration,\
org.springframework.cloud.netflix.rx.RxJavaAutoConfiguration,\
org.springframework.cloud.netflix.metrics.servo.ServoMetricsAutoConfiguration,\
org.springframework.cloud.netflix.zuul.ZuulServerAutoConfiguration,\
org.springframework.cloud.netflix.zuul.ZuulProxyAutoConfiguration
org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker=\
org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration
org.springframework.boot.env.EnvironmentPostProcessor=\
org.springframework.cloud.netflix.metrics.ServoEnvironmentPostProcessor
\ No newline at end of file
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/test/OkHttpClientConfigurationTests.java
View file @
49fdcae8
...
...
@@ -20,11 +20,6 @@ package org.springframework.cloud.netflix.test;
import
feign.Client
;
import
okhttp3.ConnectionPool
;
import
okhttp3.OkHttpClient
;
import
java.lang.reflect.Field
;
import
java.util.ArrayList
;
import
java.util.concurrent.TimeUnit
;
import
org.assertj.core.api.Assertions
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
...
...
@@ -47,12 +42,16 @@ import org.springframework.cloud.netflix.zuul.filters.route.okhttp.OkHttpRibbonC
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.test.annotation.DirtiesContext
;
import
org.springframework.test.context.junit4.Spring
JUnit4Class
Runner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.util.LinkedMultiValueMap
;
import
org.springframework.util.ReflectionUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.lang.reflect.Field
;
import
java.util.ArrayList
;
import
java.util.concurrent.TimeUnit
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
static
org
.
mockito
.
Mockito
.
mock
;
import
static
org
.
mockito
.
Mockito
.
mockingDetails
;
...
...
@@ -60,7 +59,7 @@ import static org.mockito.Mockito.mockingDetails;
/**
* @author Ryan Baxter
*/
@RunWith
(
Spring
JUnit4Class
Runner
.
class
)
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
OkHttpClientConfigurationTestApp
.
class
,
value
=
{
"feign.okhttp.enabled: true"
,
"spring.cloud.httpclientfactories.ok.enabled: true"
,
"ribbon.eureka.enabled = false"
,
"ribbon.okhttp.enabled: true"
,
"feign.okhttp.enabled: true"
,
"ribbon.httpclient.enabled: false"
,
"feign.httpclient.enabled: false"
})
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/filters/route/apache/HttpClientRibbonCommandIntegrationTests.java
View file @
49fdcae8
...
...
@@ -35,10 +35,10 @@ import org.junit.runner.RunWith;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.web.servlet.error.ErrorAttributes
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest.WebEnvironment
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
import
org.springframework.boot.web.servlet.error.ErrorAttributes
;
import
org.springframework.cloud.netflix.ribbon.DefaultServerIntrospector
;
import
org.springframework.cloud.netflix.ribbon.RibbonClient
;
import
org.springframework.cloud.netflix.ribbon.RibbonClients
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/filters/route/okhttp/OkHttpRibbonCommandIntegrationTests.java
View file @
49fdcae8
...
...
@@ -25,10 +25,10 @@ import org.junit.Test;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.web.servlet.error.ErrorAttributes
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest.WebEnvironment
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
import
org.springframework.boot.web.servlet.error.ErrorAttributes
;
import
org.springframework.cloud.netflix.ribbon.DefaultServerIntrospector
;
import
org.springframework.cloud.netflix.ribbon.RibbonClient
;
import
org.springframework.cloud.netflix.ribbon.RibbonClients
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/filters/route/restclient/RestClientRibbonCommandIntegrationTests.java
View file @
49fdcae8
...
...
@@ -40,10 +40,10 @@ import org.junit.runner.RunWith;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.web.servlet.error.ErrorAttributes
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest.WebEnvironment
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
import
org.springframework.boot.web.servlet.error.ErrorAttributes
;
import
org.springframework.cloud.client.discovery.DiscoveryClient
;
import
org.springframework.cloud.netflix.ribbon.RibbonClient
;
import
org.springframework.cloud.netflix.ribbon.RibbonClients
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/filters/route/support/RibbonCommandFallbackTests.java
View file @
49fdcae8
...
...
@@ -26,9 +26,9 @@ import java.util.Set;
import
org.junit.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.web.servlet.error.ErrorAttributes
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
import
org.springframework.boot.web.server.LocalServerPort
;
import
org.springframework.boot.web.servlet.error.ErrorAttributes
;
import
org.springframework.cloud.netflix.ribbon.RibbonClient
;
import
org.springframework.cloud.netflix.ribbon.RibbonClients
;
import
org.springframework.cloud.netflix.ribbon.SpringClientFactory
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/filters/route/support/ZuulProxyTestBase.java
View file @
49fdcae8
...
...
@@ -39,8 +39,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.web.ErrorProperties
;
import
org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController
;
import
org.springframework.boot.autoconfigure.web.servlet.error.ErrorAttributes
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
import
org.springframework.boot.web.servlet.error.ErrorAttributes
;
import
org.springframework.cloud.netflix.ribbon.StaticServerList
;
import
org.springframework.cloud.netflix.zuul.RoutesEndpoint
;
import
org.springframework.cloud.netflix.zuul.filters.Route
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/metrics/DefaultCounterFactoryTests.java
View file @
49fdcae8
...
...
@@ -16,7 +16,6 @@
package
org
.
springframework
.
cloud
.
netflix
.
zuul
.
metrics
;
import
org.springframework.boot.actuate.metrics.CounterService
;
import
com.netflix.zuul.monitoring.CounterFactory
;
...
...
@@ -28,13 +27,13 @@ import static org.mockito.Mockito.verify;
public
class
DefaultCounterFactoryTests
{
private
static
final
String
NAME
=
"my-super-metric-name"
;
private
final
CounterService
counterService
=
mock
(
CounterService
.
class
);
private
final
CounterFactory
factory
=
new
DefaultCounterFactory
(
counterService
);
//
private final CounterService counterService = mock(CounterService.class);
private
final
CounterFactory
factory
=
new
DefaultCounterFactory
(
/*counterService*/
);
@Test
public
void
shouldIncrement
()
throws
Exception
{
factory
.
increment
(
NAME
);
verify
(
counterService
).
increment
(
NAME
);
//FIXME 2.0.0
verify(counterService).increment(NAME);
}
}
\ No newline at end of file
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/metrics/ZuulMetricsApplicationTests.java
View file @
49fdcae8
...
...
@@ -21,9 +21,7 @@ import java.util.HashMap;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.metrics.CounterService
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.web.ServerProperties
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.cloud.netflix.zuul.EnableZuulServer
;
import
org.springframework.context.annotation.Bean
;
...
...
@@ -91,7 +89,8 @@ public class ZuulMetricsApplicationTests {
@Configuration
static
class
ZuulMetricsApplicationTestsConfiguration
{
@Bean
//FIXME: 2.0.0
/*@Bean
public CounterService counterService() {
return new CounterService() {
// not thread safe, but we are ok with it in tests
...
...
@@ -112,6 +111,6 @@ public class ZuulMetricsApplicationTests {
public void reset(String metricName) {
}
};
}
}
*/
}
}
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/web/ZuulHandlerMappingTests.java
View file @
49fdcae8
...
...
@@ -26,7 +26,7 @@ import java.util.List;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.mockito.Mockito
;
import
org.springframework.boot.
autoconfigure.
web.servlet.error.ErrorController
;
import
org.springframework.boot.web.servlet.error.ErrorController
;
import
org.springframework.cloud.netflix.zuul.filters.Route
;
import
org.springframework.cloud.netflix.zuul.filters.RouteLocator
;
import
org.springframework.mock.web.MockHttpServletRequest
;
...
...
spring-cloud-netflix-dependencies/pom.xml
View file @
49fdcae8
...
...
@@ -32,56 +32,16 @@
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-archaius
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-atlas
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-eureka
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-netflix-eureka-client
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-eureka-server
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-feign
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-hystrix
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-hystrix-dashboard
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-archaius
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-atlas
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
<version>
${project.version}
</version>
</dependency>
...
...
@@ -112,21 +72,11 @@
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-spectator
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-turbine
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-turbine-amqp
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-turbine-stream
</artifactId>
<version>
${project.version}
</version>
</dependency>
...
...
@@ -137,37 +87,6 @@
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-ribbon
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-spectator
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-turbine
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<!-- Deprecated. To be removed -->
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-turbine-amqp
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-turbine-stream
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-zuul
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-netflix-core
</artifactId>
<version>
${project.version}
</version>
</dependency>
...
...
@@ -177,12 +96,6 @@
<version>
${project.version}
</version>
</dependency>
<dependency>
<!-- Deprecated. To be removed -->
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-netflix-hystrix-amqp
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-netflix-hystrix-dashboard
</artifactId>
<version>
${project.version}
</version>
...
...
@@ -199,11 +112,6 @@
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-netflix-spectator
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-netflix-turbine
</artifactId>
<version>
${project.version}
</version>
</dependency>
...
...
spring-cloud-netflix-eureka-client/src/test/java/org/springframework/cloud/netflix/eureka/sample/EurekaSampleApplication.java
View file @
49fdcae8
...
...
@@ -21,7 +21,6 @@ import java.io.IOException;
import
org.springframework.beans.BeansException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.metrics.repository.InMemoryMetricRepository
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.cloud.client.discovery.DiscoveryClient
;
...
...
@@ -66,11 +65,6 @@ public class EurekaSampleApplication implements ApplicationContextAware, Closeab
private
EurekaRegistration
registration
;
@Bean
public
InMemoryMetricRepository
inMemoryMetricRepository
()
{
return
new
InMemoryMetricRepository
();
}
@Bean
public
HealthCheckHandler
healthCheckHandler
()
{
return
new
HealthCheckHandler
()
{
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment