【发布时间】:2020-12-27 18:22:48
【问题描述】:
我每次尝试运行项目时都会收到以下错误。我确实将 Project SDK 设置为 java 8,尝试打开 jdk 以及 oracle jdk,但仍然出现以下错误。我之前使用过这个项目并且没有任何问题,但它不能在我的新计算机上运行。在这台机器上,我之前安装了 java 11,但我删除了它。我用的是mac。
有人知道我为什么会收到这个错误吗?
提前致谢。
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getClientHttpRequestFactory' defined in class path resource [com/vocalink/bps/reporting/config/RestTemplateConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.http.client.ClientHttpRequestFactory]: Factory method 'getClientHttpRequestFactory' threw exception; nested exception is java.lang.UnsupportedOperationException: clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+
【问题讨论】:
-
这个答案可能会有所帮助:stackoverflow.com/questions/50594350/…
标签: java spring-boot okhttp sslsocketfactory