I am upgrading the spring cloud version to 2024.0.1 and spring boot version to 3.4.5.
i was able to configure **earlier **the SSL certificate and all by below code works
@FeignClient(name = "feign1", url = "//", configuration = A.class)
public interface AddressClient {
@GetMapping("/address/{id}")
public ResponseEntity<AddressResponse> getAddressByEmployeeId(@PathVariable("id") int id);
}
}
@Configuration
public Class A
{
@Bean
public Client feignClient() throws Exception {
log.info("Configuring SSL Context for Feign Client");
return new Client.Default(createSSLContext(), SSLConnectionSocketFactory.getDefaultHostnameVerifier());
}
but now its started giving error as Failed to instantiate [feign.Client]
i am not getting it what changes has been made. so i remove @Configuration from Class A so no issue aise
So if i want the @Configuration annotation what additional dependency/code need to write. please assist.