摘要: 需求描述 需求场景,部署了一个视频平台,其存在分享页,现在需要通过nginx代理到分享页进行视频播放。注意:分享页中会访问一个接口,返回body里面会携带具体的视频流播放地址,但这相关的播放地址是直接指向目标服务器,可以通过设置Host来改变IP,但协议返回就存在问题了。 使用nginx代理,需要同 阅读全文
posted @ 2026-08-14 10:14 理舞 阅读(2) 评论(0) 推荐(0)
摘要: 参考: IDEA设置类的文件头注释 https://blog.csdn.net/engerla/article/details/84846463 IDEA设置方法注释模板 https://blog.csdn.net/engerla/article/details/119254597 阅读全文
posted @ 2024-04-19 10:29 理舞 阅读(83) 评论(0) 推荐(0)
摘要: import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; 提示找不到符号在JDK17下出现,将项目变更或JDK8就可以了 阅读全文
posted @ 2024-04-02 19:46 理舞 阅读(52) 评论(0) 推荐(0)
摘要: 一、安装nvm linux安装 编辑文件/etc/hosts 199.232.68.133 raw.githubusercontent.com 199.232.68.133 user-images.githubusercontent.com 199.232.68.133 avatars2.githu 阅读全文
posted @ 2024-04-02 17:47 理舞 阅读(108) 评论(0) 推荐(0)
摘要: 镜像源 清华源:https://pypi.tuna.tsinghua.edu.cn/simple 豆瓣源:https://pypi.doubanio.com/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.m 阅读全文
posted @ 2024-03-27 08:45 理舞 阅读(89) 评论(0) 推荐(0)
摘要: pip install scikit-learn # from sklearn.decomposition import PCA pip install pymysql # import pymysql pip install py2neo # import py2neo as neo pip in 阅读全文
posted @ 2024-03-25 08:29 理舞 阅读(54) 评论(0) 推荐(0)
摘要: 一、Des算法 import java.security.SecureRandom; import java.util.Base64; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.Sec 阅读全文
posted @ 2024-03-23 07:45 理舞 阅读(82) 评论(0) 推荐(0)
摘要: 当浏览器向后台发起请求时,后台返回302,此时浏览器因为请求的发起方式不同,处理302的方式也不同,下面列举常见的处理方式: 参考博客: [1] 关于http重定向(302)的实验 https://blog.csdn.net/u010476739/article/details/115719565 阅读全文
posted @ 2023-11-24 08:22 理舞 阅读(194) 评论(0) 推荐(0)
摘要: 1、控制浏览器缓存 server { listem 80; server_name www.tomcats.com; location / { proxy_pass http://tomcats; expires 10s; #浏览器缓存10秒钟 #expires @22h30m #在晚上10点30的 阅读全文
posted @ 2023-11-16 09:09 理舞 阅读(62) 评论(0) 推荐(0)
摘要: 关键代码 ``` var gcj02Data = gcoord.transform(geoJsonObject, gcoord.WGS84, gcoord.GCJ02); ``` 具体见github https://github.com/hujiulong/gcoord 阅读全文
posted @ 2023-07-25 21:21 理舞 阅读(259) 评论(0) 推荐(0)