package org.onetwo.cloud.eureka;

import org.onetwo.boot.core.init.BootServletContextInitializer;
import org.onetwo.cloud.core.BootJfishCloudConfig;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wayshall
 * <br/>
 */
@EnableDiscoveryClient
@EnableConfigurationProperties({BootJfishCloudConfig.class})
@Configuration
public class EurekaClientContextConfig {

	@Bean
	@ConditionalOnBean(BootServletContextInitializer.class)
	public EurekaUnregisterProcessor eurekaUnregisterProcessor() {
		return new EurekaUnregisterProcessor();
	}

	public EurekaClientContextConfig(){
	}
}

@@ -213,24 +213,103 @@
 onalOnBean;%0A
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;%0A
 import org.s
@@ -701,16 +701,90 @@
 uration%0A
+@ConditionalOnProperty(name=%22eureka.client.enabled%22, matchIfMissing=true)%0A
 public c
@@ -844,16 +844,17 @@
 lOnBean(
+%7B
 BootServ
@@ -880,16 +880,17 @@
 er.class
+%7D
 )%0A%09publi

fix eureka