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
86ac0127
Commit
86ac0127
authored
Feb 19, 2016
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade eureka to 1.4.1
Plus polish fixes gh-836
parent
10436160
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
13 deletions
+26
-13
ZuulConfiguration.java
...springframework/cloud/netflix/zuul/ZuulConfiguration.java
+2
-2
ZuulProxyConfiguration.java
...gframework/cloud/netflix/zuul/ZuulProxyConfiguration.java
+0
-6
SampleZuulProxyWithHttpClientTests.java
...loud/netflix/zuul/SampleZuulProxyWithHttpClientTests.java
+8
-4
pom.xml
spring-cloud-netflix-dependencies/pom.xml
+1
-1
CloudEurekaTransportConfig.java
...work/cloud/netflix/eureka/CloudEurekaTransportConfig.java
+11
-0
pom.xml
spring-cloud-starter-eureka/pom.xml
+4
-0
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/ZuulConfiguration.java
View file @
86ac0127
...
...
@@ -61,10 +61,10 @@ import com.netflix.zuul.http.ZuulServlet;
public
class
ZuulConfiguration
{
@Autowired
pr
ivate
ZuulProperties
zuulProperties
;
pr
otected
ZuulProperties
zuulProperties
;
@Autowired
pr
ivate
ServerProperties
server
;
pr
otected
ServerProperties
server
;
@Autowired
(
required
=
false
)
private
ErrorController
errorController
;
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/ZuulProxyConfiguration.java
View file @
86ac0127
...
...
@@ -64,12 +64,6 @@ public class ZuulProxyConfiguration extends ZuulConfiguration {
private
DiscoveryClient
discovery
;
@Autowired
private
ZuulProperties
zuulProperties
;
@Autowired
private
ServerProperties
server
;
@Autowired
private
ServiceRouteMapper
serviceRouteMapper
;
@Override
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/SampleZuulProxyWithHttpClientTests.java
View file @
86ac0127
...
...
@@ -16,13 +16,14 @@
package
org
.
springframework
.
cloud
.
netflix
.
zuul
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.test.IntegrationTest
;
import
org.springframework.boot.test.SpringApplicationConfiguration
;
import
org.springframework.boot.test.TestRestTemplate
;
import
org.springframework.boot.test.WebIntegrationTest
;
import
org.springframework.cloud.netflix.ribbon.RibbonClient
;
import
org.springframework.cloud.netflix.ribbon.RibbonClients
;
import
org.springframework.cloud.netflix.ribbon.SpringClientFactory
;
...
...
@@ -36,7 +37,6 @@ import org.springframework.http.HttpStatus;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.test.annotation.DirtiesContext
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
org.springframework.test.context.web.WebAppConfiguration
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -48,13 +48,17 @@ import static org.junit.Assert.assertTrue;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringApplicationConfiguration
(
classes
=
SampleHttpClientZuulProxyApplication
.
class
)
@WebAppConfiguration
@IntegrationTest
({
"server.port: 0"
,
@WebIntegrationTest
(
randomPort
=
true
,
value
=
{
"zuul.routes.other: /test/**=http://localhost:7777/local"
,
"zuul.routes.another: /another/twolevel/**"
,
"zuul.routes.simple: /simple/**"
})
@DirtiesContext
public
class
SampleZuulProxyWithHttpClientTests
extends
ZuulProxyTestBase
{
@Before
public
void
init
()
{
super
.
setTestRequestcontext
();
}
@Test
public
void
patchOnSelfViaRibbonRoutingFilter
()
{
ResponseEntity
<
String
>
result
=
new
TestRestTemplate
().
exchange
(
...
...
spring-cloud-netflix-dependencies/pom.xml
View file @
86ac0127
...
...
@@ -18,7 +18,7 @@
<spring-cloud-config.version>
1.1.0.BUILD-SNAPSHOT
</spring-cloud-config.version>
<spring-cloud-stream.version>
1.0.0.BUILD-SNAPSHOT
</spring-cloud-stream.version>
<archaius.version>
0.7.3
</archaius.version>
<eureka.version>
1.
3.8
</eureka.version>
<eureka.version>
1.
4.1
</eureka.version>
<feign.version>
8.14.4
</feign.version>
<hystrix.version>
1.4.23
</hystrix.version>
<ribbon.version>
2.1.0
</ribbon.version>
...
...
spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/CloudEurekaTransportConfig.java
View file @
86ac0127
...
...
@@ -42,10 +42,21 @@ public class CloudEurekaTransportConfig implements EurekaTransportConfig {
private
String
readClusterVip
;
private
String
writeClusterVip
;
private
boolean
bootstrapResolverForQuery
=
true
;
private
String
bootstrapResolverStrategy
;
private
boolean
applicationsResolverUseIp
=
false
;
@Override
public
boolean
useBootstrapResolverForQuery
()
{
return
this
.
bootstrapResolverForQuery
;
}
@Override
public
boolean
applicationsResolverUseIp
()
{
return
this
.
applicationsResolverUseIp
;
}
}
spring-cloud-starter-eureka/pom.xml
View file @
86ac0127
...
...
@@ -43,6 +43,10 @@
<artifactId>
eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
com.netflix.eureka
</groupId>
<artifactId>
eureka-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-archaius
</artifactId>
</dependency>
...
...
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