自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除