@Configuration
public class EurekaJerseyClientAdapter
{
@Bean
@ConditionalOnMissingBean
public EurekaJerseyClient eurekaJerseyClient()
{
EurekaJerseyClientImpl.EurekaJerseyClientBuilder builder = new
EurekaJerseyClientImpl.EurekaJerseyClientBuilder()
.withClientName("server")
.withMaxConnectionsPerHost(256)
.withTrustStoreFile("client.truststore","123456");
return builder.build();
}
}
in my springboot project:
com.itmuch.cloud.study
com.itmuch.cloud.study.ConsumerMovieApplication
com.itmuch.cloud.study.EurekaJerseyClientAdapter
i cont inject EurekaJerseyClient bean into DiscoveryClient.java#L270
so it used to init com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl.EurekaJerseyClientBuilder.MyDefaultApacheHttpClient4Config#createDefaultSslCM, but i dont want it.
https://github.com/Netflix/eureka/blob/3a744ee88274e70324958bc996b33c29f16a872d/eureka-client/src/main/java/com/netflix/discovery/DiscoveryClient.java#L270
in my springboot project: com.itmuch.cloud.study com.itmuch.cloud.study.ConsumerMovieApplication com.itmuch.cloud.study.EurekaJerseyClientAdapter
i cont inject EurekaJerseyClient bean into DiscoveryClient.java#L270 so it used to init com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl.EurekaJerseyClientBuilder.MyDefaultApacheHttpClient4Config#createDefaultSslCM, but i dont want it.