79636620

Date: 2025-05-24 09:32:21
Score: 2
Natty:
Report link

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.

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Configuration
  • Low reputation (1):
Posted by: Anup V