- 博客(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
2497
转载 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
18990
原创 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
7039
原创 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
2030
转载 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
1344
原创 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
1046
原创 idea创建springboot项目模块失败
IDEA版本2021将服务器的地址设置为阿里云的服务器地址http://start.aliyun.com
2022-03-09 21:12:18
514
原创 Access denied for user ‘root‘@‘localhost‘ (using password: YES)
spring-dao.xml配置文件里面通过xxx.properties获取值没写${}
2022-03-05 13:22:17
125
原创 后缀表达式求值
这有两种方法,中心思想是一样的只不过定义的字符类型不一样第一种方法用的是 字符指针类型 (我认为这种方法更好)#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
192
空空如也
本机Redis Desktop Manager连不上vmware的redis
2022-08-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人