最新发布第78页
Spring Boot各个版本修改文件上传大小限制-Ddmit

Spring Boot各个版本修改文件上传大小限制

Springboot上传文件报错信息如下: Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceede...
ddmit的头像-DdmitDdmit4年前
016240
将时长格式化为友好的可读格式-Ddmit

将时长格式化为友好的可读格式

将Java中的时长(long型毫秒)等格式,转换为方便查看的时间格式(经过时长多少天、多少小时、多少分钟)。 /** * 将时间转换为天、小时、分钟 * * @param duration 时长(毫秒) * @return 格式化 ...
ddmit的头像-DdmitDdmit4年前
013430
SQL SERVER连接Secure Sockets Layer (SSL) 错误-Ddmit

SQL SERVER连接Secure Sockets Layer (SSL) 错误

今天java项目连接sql server突然连接不上了,报如下错误: com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Se...
ddmit的头像-DdmitDdmit4年前
015410
MySQL max_allowed_packet错误解决-Ddmit

MySQL max_allowed_packet错误解决

MySQL查询报错: ### Error querying database. Cause: com.mysql.cj.jdbc.exceptions.PacketTooBigException: Packet for query is too large (2,482 > 2,048). You can change this value ...
ddmit的头像-DdmitDdmit4年前
013520
Springboot上传文件报错:the temporary upload location is not valid-Ddmit

Springboot上传文件报错:the temporary upload location is not valid

Springboot上传文件报错 Failed to parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location [/data/upload_tmp/work/Tomcat/localhost/ROO...
ddmit的头像-DdmitDdmit4年前
011690
Hexo报错ERR_INVALID_URL解决-Ddmit

Hexo报错ERR_INVALID_URL解决

Hexo静态博客生成页面时报错 TypeError [ERR_INVALID_URL]: Invalid URL: https://ip访问:重定向到https://tdom.ml(跳转的时候浏览器可能提示不安全是正常的) 也就是将md文件中的所有连接都检...
ddmit的头像-DdmitDdmit4年前
015400
JS判断一个字符串是否包含某些特殊字符?-Ddmit

JS判断一个字符串是否包含某些特殊字符?

JS判断一个字符串是否包含某些特殊字符? 实现 /** * 判断字符串是否包含指定字符串数组中的某一项 * @param {String} text 字符串 * @param {Array} values 可能包含的字符串数组 * @returns {...
ddmit的头像-DdmitDdmit4年前
013961
jQuery根据多个class name获取元素-Ddmit

jQuery根据多个class name获取元素

实现方式: <a href='javascript:void(0);' class='centerLeftNav active' id='1></a> <a href='javascript:void(0);' class='centerLeftNav' id='2'></a> var aTagId ...
ddmit的头像-DdmitDdmit4年前
014150
Springboot提示No beans of 'RestTemplate' type found错误-Ddmit

Springboot提示No beans of ‘RestTemplate’ type found错误

错误信息 在使用RestTemplate时,IntelliJ Idea提示Could not autowire. No beans of 'RestTemplate' type found.。 代码清单: @Component public class SmsUtil { @Autowired private RestTem...
Windows10 git commit报错node: command not found解决办法-Ddmit

Windows10 git commit报错node: command not found解决办法

在使用git准备提交文件时,报错: Commit failed with error 0 file committed, 1 file failed to commit: 上传车辆同行记录; .git/hooks/pre-commit: line 32: node: command not found 解决...
ddmit的头像-DdmitDdmit4年前
025760