自建oss-api文档


oss-api分为server和node全局返回值resultcodedatamsg状态码返回的数据提示/失败的消息code:1为成功,0为失败,其他请看具体接口文件上传1.获取上传会话/user/getUpload?id=userid&password=password&fileN

java返回Long类型给前端精度丢失


问题描述接口返回数据的时候,有一个Long类型的主键字段(使用雪花算法生成的19位数字),单元测试、postman、apifox的返回数据均与数据库数据一致(1614468766644559873),前端浏览器查看返回数据却不一致(1614468766644560000)。原因Java中Long类型

restTemplate忽略ssl认证


restTemplate请求https接口会报证书错误,使用以下代码接受所有证书 <dependency> <groupId>org.apache.httpcomponents</groupId> <

解决JavaWeb返回String字符串网页显示带有双引号


```javaresponse.setContentType("text/html;charset=utf-8");response.getWriter().write("hellow");response.getWriter().flush();respon

windows文件同步


import org.junit.jupiter.api.Test;import java.io.*;import java.text.SimpleDateFormat;import java.util.*;public class FileTest { //同步文件夹 public s

JAVAweb文件下载功能支持断点续传并输出本次下载的数据量


public void downloadExistsFile(HttpServletRequest request, HttpServletResponse response, File proposeFile) throws IOException, FileNotFoundExcepti

让Cloudflare Zero Trust走ipv6网络


添加--edge-ip-version 6参数例如:docker run -d --network host --name=cloudflared-ipv6 --restart unless-stopped cloudflare/cloudflared:latest tunnel --edge-ip

宝塔面板nginx反向代理之后无法多线程下载


使用宝塔nginx代理本机服务发现正常,代理远程服务出现无法多线程下载文件解决方法:删除/www/server/nginx/conf/proxy.conf的最后一行配置

Hello Halo


Hello Halo如果你看到了这一篇文章,那么证明你已经安装成功了,感谢使用 Halo 进行创作,希望能够使用愉快。相关链接官网:https://halo.run文档:https://docs.halo.run社区:https://bbs.halo.run主题仓库:https://halo.run