- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 项目中出现specify @BootstrapWith‘s ‘value‘ attribute or make the default bootstrapper class avail
问题描述:在启动项目的时候控制台中报以下错误specify @BootstrapWith's 'value' attribute or make the default bootstrapper class available.解决方法:引入的test的依赖版本与项目中的Spring版本不一致,一种方法时去除版本指定,另外一种是将版本更改为与项目Spring一致<dependency> <groupId>org.springframework</group
2020-12-29 11:27:36 2697 1
原创 Java 代理访问http
RestTemplate中配置代理访问httpimport lombok.extern.slf4j.Slf4j;import org.apache.http.HttpHost;import org.apache.http.client.config.RequestConfig;import org.apache.http.conn.ssl.SSLConnectionSocketFactory;import org.apache.http.impl.client.HttpClientBuilde
2020-12-18 14:21:37 257
原创 Spring Boot项目中使用RestTemplate调用https接口出现 unable to find valid certification path to requested target
问题描述:Spring Boot项目中使用RestTemplate调用https接口出现以下错误:PKIXpathbuildingfailed:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpathtorequestedtarget解决方法:出现上述问题的原因就是Java自带的安全证书不受信任,在代码里面的实现方式为在构建restTempla...
2020-12-18 14:11:45 1942
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人