自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 问答 (1)
  • 收藏
  • 关注

转载 Processing of multipart/form-data request failed. Stream ended unexpectedly

今天遇到一个bug,弄了很久,写个博客分享一下项目需要上传图片视频,在本地测试的时候是可以传大视频的测过30多mb,但是部署到服务器之后,大于1mb都会报错502 Bad Gatewaymsg:Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.impl.IOFileUploadException...

2022-04-09 15:48:53 2227

转载 Redis Client On Error: Error: connect ECONNREFUSED ip:6379 Config right?

法1、在redis.conf里面将bind 127.0.0.1注释掉法2、关闭防火墙,或添加6379端口systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动开放6379端口/sbin/iptables -I INPUT -p tcp --dport 6379 -j ACCEPT保存配置/etc/rc.d/init..

2022-04-06 20:05:45 16192

原创 swagger-bootstrap-ui 报错No mapping for GET /doc.htm,404l,以及无法显示接口文档

首先是访问http://ip:/doc.htmlhttp://${host}:${port}/doc.htmlhttp://ip:/doc.html报错1、第一种情况,假如是SpringSecurity项目,可能是configure(WebSecurity web)没有放行,代码如下@Configuration@Lazypublic class SecurityConfig extends WebSecurityConfigurerAdapter{ @Override pu

2022-04-05 13:29:51 6310

原创 MySql驱动

使用MySQL5.7以下driver-class-name: com.mysql.jdbc.Driverurl: jdbc:mysql://localhost:3306/demoproject?useUnicode=true&useSSL=false&characterEncoding=utf8mysql5.7以上的版本driver-class-name: com.mysql.cj.jdbc.Driverurl: jdbc:mysql://localhost:3306/d

2022-03-30 10:23:56 1893

转载 Java实体类-VO、DTO、Entity笔记

最近在项目中遇到一些实体类的包不知道干啥用的,里面的代码都是一样的,不清楚意义在哪,特此搜集网上相关资料来做个笔记Entity 中的每一个字段都与数据库中的字段相对应 VO 中的每一个字段都与前端html页面相对应 DTO 用来转的,从Entity到VO,或从VO到Entity比如:HTML上面有三个字段:name,pass,age数据库里面有两个字段:name,pass。没有age那么vo里面,应该有三个成员变量,因为对应HTML上的三个字段private String nam

2022-03-24 21:37:51 1199

原创 Establishing SSL connection without server‘s identity verification is not recommended.

SpringBoot项目中在application.yaml里面直接修改为useSSL=falsespring: datasource: url: jdbc:mysql://localhost:3306/mybatis?useSSL=false

2022-03-18 16:55:49 1004

原创 idea创建springboot项目模块失败

IDEA版本2021将服务器的地址设置为阿里云的服务器地址http://start.aliyun.com

2022-03-09 21:12:18 450

原创 Access denied for user ‘root‘@‘localhost‘ (using password: YES)

spring-dao.xml配置文件里面通过xxx.properties获取值没写${}

2022-03-05 13:22:17 95

原创 后缀表达式求值

这有两种方法,中心思想是一样的只不过定义的字符类型不一样第一种方法用的是 字符指针类型 (我认为这种方法更好)#include<iostream>#include<stack>using namespace std;double cal(char* A){ stack<char> s; char ch = *A; int res = 0; while (ch != '#') { if (ch >= '0' && ch

2021-10-04 12:46:44 120

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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