最新发布第78页
排序
Spring Boot各个版本修改文件上传大小限制
Springboot上传文件报错信息如下: Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceede...
将时长格式化为友好的可读格式
将Java中的时长(long型毫秒)等格式,转换为方便查看的时间格式(经过时长多少天、多少小时、多少分钟)。 /** * 将时间转换为天、小时、分钟 * * @param duration 时长(毫秒) * @return 格式化 ...
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...
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 ...
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...
Hexo报错ERR_INVALID_URL解决
Hexo静态博客生成页面时报错 TypeError [ERR_INVALID_URL]: Invalid URL: https://ip访问:重定向到https://tdom.ml(跳转的时候浏览器可能提示不安全是正常的) 也就是将md文件中的所有连接都检...
JS判断一个字符串是否包含某些特殊字符?
JS判断一个字符串是否包含某些特殊字符? 实现 /** * 判断字符串是否包含指定字符串数组中的某一项 * @param {String} text 字符串 * @param {Array} values 可能包含的字符串数组 * @returns {...
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 ...
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解决办法
在使用git准备提交文件时,报错: Commit failed with error 0 file committed, 1 file failed to commit: 上传车辆同行记录; .git/hooks/pre-commit: line 32: node: command not found 解决...