-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnsatisfiedDependencyException: Error creating bean with name 'httpClientSslConfigurer' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration$NettyConfiguration.class]: #3702
Comments
spring-boot-starter-validation is a required dependency. Why is it not on your class path? |
1、Try to modify and adjust the httpclient property configuration as follows:
2、I tried to introduce the following dependencies into my gateway module
Still not solved UnsatisfiedDependencyException: Error creating bean with name 'httpClientSslConfigurer' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration$NettyConfiguration.class]: Unsatisfied dependency expressed through method 'httpClientSslConfigurer' parameter 1: Error creating bean with name 'httpClientProperties': Could not bind properties to 'HttpClientProperties' : prefix=spring.cloud.gateway.httpclient, ignoreInvalidFields=false, ignoreUnknownFields=true After analyzing the Maven dependency tree, the underlying dependency of spring-cloud-gateway-server contains the spring-boot-starter-validation dependency you mentioned The following is my mvn dependency:tree
|
Something else in your project is managing the version of hibernate-vildator to 6.1.5.Final. The version managed by spring-boot is 8.0.2.Final https://central.sonatype.com/artifact/org.springframework.boot/spring-boot-starter-validation |
Appears when integrating Spring Cloud gateway Unsatisfied dependency expressed through method 'httpClientSslConfigurer' parameter 1: Error creating bean with name 'httpClientProperties': Could not bind properties to 'HttpClientProperties' : prefix=spring.cloud.gateway.httpclient, ignoreInvalidFields=false, ignoreUnknownFields=true
Current environment :
Configuration:
I have configured the following settings in application.yml to specify the HTTP client configuration and routing:
The specific error is as follows:
I tried to comment out the httpclient configuration item and restart the service, but the same error still occurred.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: