- 博客(5)
- 收藏
- 关注
原创 解决java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
解决java.lang.IllegalStateException: Cannot call sendError() after the response has been committed!在用spring boot写restful风格的接口时特别是写文件下载或文件导出时会碰到java.lang.IllegalStateException: Cannot call sendError() after the response has been committed这样的bug,很多人可能一脸困惑,就
2021-03-19 11:08:20
1290
5
原创 2021-03-08
Aes加密 需要引入的maven依赖如下: <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk15on</artifactId> <version>1.55</version> </dependency>..
2021-03-08 16:23:45
1223
原创 nginx的下载使用
nginx的下载使用1.安装前准备在安装nginx前首先要确认系统中是否安装了gcc、pcre-devel、zlib-devel、openssl-devel。linux下检查是否安装过某软件包1、rpm包安装的,可以用 rpm -qa 看到,如果要查找某软件包是否安装,用 rpm -qa | grep “软件或者包的名字”2、以deb包安装的,可以用 dpkg -l 看到。如果是查找指定软件包,用 dpkg -l | grep “软件或者包的名字”3、yum方法安装的,可以用 yum
2021-02-07 09:57:06
140
原创 子线程执行完毕之后在执行其他方法
子线程执行完毕之后在执行其他方法 //几个线程,写几个数 final CountDownLatch mCountDownLatch = new CountDownLatch(3); new Thread(() -> { System.out.println(“线程1”); mCountDownLatch.countDown(); }).start(); new Thre
2021-02-05 17:57:07
202
原创 调用第三方接口出现证书问题
调用第三方接口出现证书问题描述sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target问题原因源应用程序不信任目标应用程序的证书,因为在源应用程序的JVM信任库中找不到该证
2021-02-01 09:35:08
1489
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人