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
5964d160
Commit
5964d160
authored
Dec 04, 2014
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove deprecated @EnableEurekaClient and replace with @EnableDiscoveryClient
fixes gh-85
parent
3333cbeb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
43 deletions
+6
-43
DiscoveryClientConfigServiceBootstrapConfiguration.java
...g/DiscoveryClientConfigServiceBootstrapConfiguration.java
+2
-2
EnableEurekaClient.java
...ingframework/cloud/netflix/eureka/EnableEurekaClient.java
+0
-37
SampleZuulProxyApplication.java
...mework/cloud/netflix/zuul/SampleZuulProxyApplication.java
+2
-2
EurekaServerConfiguration.java
...loud/netflix/eureka/server/EurekaServerConfiguration.java
+2
-2
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/config/DiscoveryClientConfigServiceBootstrapConfiguration.java
View file @
5964d160
...
@@ -20,9 +20,9 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -20,9 +20,9 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.config.client.ConfigClientProperties
;
import
org.springframework.cloud.config.client.ConfigClientProperties
;
import
org.springframework.cloud.config.client.ConfigServicePropertySourceLocator
;
import
org.springframework.cloud.config.client.ConfigServicePropertySourceLocator
;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration
;
import
org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.context.ApplicationListener
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
...
@@ -44,7 +44,7 @@ import com.netflix.discovery.DiscoveryClient;
...
@@ -44,7 +44,7 @@ import com.netflix.discovery.DiscoveryClient;
@ConditionalOnClass
({
DiscoveryClient
.
class
,
ConfigServicePropertySourceLocator
.
class
})
@ConditionalOnClass
({
DiscoveryClient
.
class
,
ConfigServicePropertySourceLocator
.
class
})
@ConditionalOnExpression
(
"${spring.cloud.config.discovery.enabled:false}"
)
@ConditionalOnExpression
(
"${spring.cloud.config.discovery.enabled:false}"
)
@Configuration
@Configuration
@Enable
Eureka
Client
@Enable
Discovery
Client
@Import
(
EurekaClientAutoConfiguration
.
class
)
@Import
(
EurekaClientAutoConfiguration
.
class
)
@Slf4j
@Slf4j
public
class
DiscoveryClientConfigServiceBootstrapConfiguration
implements
public
class
DiscoveryClientConfigServiceBootstrapConfiguration
implements
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka/EnableEurekaClient.java
deleted
100644 → 0
View file @
3333cbeb
/*
* Copyright 2013-2014 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
cloud
.
netflix
.
eureka
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
import
org.springframework.context.annotation.Import
;
/**
* @author Dave Syer
*
*/
@Target
(
ElementType
.
TYPE
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Documented
@Import
(
EurekaDiscoveryClientConfiguration
.
class
)
@Deprecated
public
@interface
EnableEurekaClient
{
}
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/SampleZuulProxyApplication.java
View file @
5964d160
...
@@ -2,7 +2,7 @@ package org.springframework.cloud.netflix.zuul;
...
@@ -2,7 +2,7 @@ package org.springframework.cloud.netflix.zuul;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.
netflix.eureka.EnableEureka
Client
;
import
org.springframework.cloud.
client.discovery.EnableDiscovery
Client
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
...
@@ -13,7 +13,7 @@ import com.netflix.zuul.ZuulFilter;
...
@@ -13,7 +13,7 @@ import com.netflix.zuul.ZuulFilter;
@SpringBootApplication
@SpringBootApplication
@RestController
@RestController
@EnableZuulProxy
@EnableZuulProxy
@Enable
Eureka
Client
@Enable
Discovery
Client
public
class
SampleZuulProxyApplication
{
public
class
SampleZuulProxyApplication
{
@RequestMapping
(
"/testing123"
)
@RequestMapping
(
"/testing123"
)
...
...
spring-cloud-netflix-eureka-server/src/main/java/org/springframework/cloud/netflix/eureka/server/EurekaServerConfiguration.java
View file @
5964d160
...
@@ -4,7 +4,7 @@ import javax.servlet.Filter;
...
@@ -4,7 +4,7 @@ import javax.servlet.Filter;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.boot.context.embedded.FilterRegistrationBean
;
import
org.springframework.boot.context.embedded.FilterRegistrationBean
;
import
org.springframework.cloud.
netflix.eureka.EnableEureka
Client
;
import
org.springframework.cloud.
client.discovery.EnableDiscovery
Client
;
import
org.springframework.cloud.netflix.eureka.EurekaServerConfigBean
;
import
org.springframework.cloud.netflix.eureka.EurekaServerConfigBean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
...
@@ -22,7 +22,7 @@ import com.sun.jersey.spi.container.servlet.ServletContainer;
...
@@ -22,7 +22,7 @@ import com.sun.jersey.spi.container.servlet.ServletContainer;
*/
*/
@Configuration
@Configuration
@Import
(
EurekaServerInitializerConfiguration
.
class
)
@Import
(
EurekaServerInitializerConfiguration
.
class
)
@Enable
Eureka
Client
@Enable
Discovery
Client
public
class
EurekaServerConfiguration
extends
WebMvcConfigurerAdapter
{
public
class
EurekaServerConfiguration
extends
WebMvcConfigurerAdapter
{
@Bean
@Bean
...
...
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