- 博客(5)
- 收藏
- 关注
原创 发送https请求
发送https请求package com.xzgx.thirdparty.util;import com.xzgx.common.exception.CustomException;import com.xzgx.common.utils.StringUtils;import lombok.extern.slf4j.Slf4j;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.ap
2022-01-24 18:25:08 1745 1
原创 springboot解决fastJson反序列化漏洞
springboot解决fastJson反序列化漏洞1.fastJson版本升级为>1.2.66 **启动类添加** //解决fastJson反序列化漏洞,关闭autoType static { ParserConfig.getGlobalInstance().setSafeMode(true); }
2022-01-24 18:17:27 1229
原创 Could not create connection to database server. Attempted reconnect 3 times. Giving up.
问题描述:使用sqlyog连接本地数据库没问题,但是使用idea连接本地数据库报错【Could not create connection to database server. Attempted reconnect 3 times. Giving up.】原因分析:1.可能是mysql服务未启动成功。2.低版本的mysql驱动未加时区。3.我的异常问题(IP原因)【本文解决方案】。解决方案: url: jdbc:mysql://127.0.0.1:3306/ssp_v3.2.5 把ip
2021-02-19 15:23:35 1017
原创 org.eclipse.jgit.transport.JschConfigSessionFactory类加载异常
org.eclipse.jgit.transport.JschConfigSessionFactory类加载异常##替换pom文件为如下版本 <dependency> <groupId>org.eclipse.jgit</groupId> <artifactId>org.eclipse.jgit</artifactId> <version>5.2.1.201812262042-r</v
2020-12-16 13:38:09 1104
原创 springboot项目打成jar运行classPathResource.getFile()获取文件失败
springboot项目打成jar运行classPathResource.getFile()获取文件失败把 ClassPathResource classPathResource = new ClassPathResource("antisamy/antisamy-ebay.xml"); File file = classPathResource.getFile(); InputStream inputStream = new FileInputStream(file);改为 Cla
2020-12-16 13:28:04 1673
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人