Loading

摘要: 假设两个APP分别是用户端和内部端 结构如下 API (用户端接口) /api/ ├── auth/ # 认证相关 ├── users/ # 用户相关 ├── products/ # 商品相关 └── orders/ # 订单相关 Internal (内部端接口) /internal/ ├── au 阅读全文
posted @ 2025-09-30 16:28 路闻man 阅读(8) 评论(0) 推荐(0)
摘要: 一、NVM简介 在项目开发过程中,使用到vue框架技术,需要安装node下载项目依赖,但经常会遇到node版本不匹配而导致无法正常下载,重新安装node却又很麻烦。 为解决以上问题,nvm:一款node的版本管理工具,能够管理node的安装和使用,使用简单,可下载指定node版本和切换使用不同版本, 阅读全文
posted @ 2025-08-25 10:25 路闻man 阅读(1114) 评论(0) 推荐(0)
摘要: #!/bin/bash echo "" # 输出当前时间 date --date='0 days ago' "+%Y-%m-%d %H:%M:%S" echo "Start" # git项目路径(这里根据自己的项目路径进行修改) gitPath="/www/wwwroot/xxx" # git网址( 阅读全文
posted @ 2025-07-14 11:10 路闻man 阅读(13) 评论(0) 推荐(0)
摘要: 在现代 Web 开发中,我们常常需要知道用户是否还停留在当前页面。这个看似简单的需求,背后却关联着用户体验、数据分析和系统性能等多个重要方面。 “离开页面”这个行为本身可以被细分为多种场景: 切换到其他浏览器标签页或应用(页面变为不可见,但未关闭)。 最小化浏览器窗口(同上)。 关闭浏览器标签页或整 阅读全文
posted @ 2025-06-30 11:42 路闻man 阅读(78) 评论(0) 推荐(0)
摘要: 1.安装 1.1.WIN安装 【Windows】FFmpeg安装教程_ffmpeg win7-CSDN博客 1.2. linux安装 宝塔安装ffmpeg的方法_宝塔 ffmpeg-CSDN博客 2.使用 <?php // 上传目录 $uploadDir = __DIR__ . '/uploads/ 阅读全文
posted @ 2025-04-23 15:12 路闻man 阅读(116) 评论(0) 推荐(0)
摘要: 一、配置SSH 创建 SSH 密钥 打开终端。 生成 SSH 密钥: 使用以下命令生成一个新的 SSH 密钥对: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" -t rsa 指定密钥类型为 RSA。 -b 4096 指定密钥长度为 409 阅读全文
posted @ 2024-10-06 17:05 路闻man 阅读(423) 评论(0) 推荐(0)
摘要: aaPanel面板和宝塔面板都是同一家公司在运营,只是aaPanel面板主要服务于海外客户,宝塔面板服务于本地客户。通常如果使用的是海外的服务器部署web环境,建议使用aaPanel面板。宝塔面板是一款基于 Web 的管理服务器的面板软件,它可以帮助用户方便地管理服务器的各种功能。面板支持Linux 阅读全文
posted @ 2024-04-19 19:07 路闻man 阅读(3836) 评论(0) 推荐(1)
摘要: 最近测试发现网站的数据不正常,经过排查,是脚本没正常运行。查看错误日志,发现报SQLSTATE[HY000]: General error: 2006 MySQL server has gone away错误。 第一时间怀疑是服务器连接数太多,但是使用SHOW FULL PROCESSLIST查询, 阅读全文
posted @ 2023-10-30 11:29 路闻man 阅读(309) 评论(0) 推荐(0)
摘要: 一、安装xdebug 下载Xdebug,要下载与PHP对应版本的Xdebug xdebug官网下载地址:Xdebug: Downloads 这里下载的如果没有跟你的php对应,那么等待你的就是一堆报错 网站提供了一个自动分析系统对应的xdebug版本 ,网址是: Xdebug: Support — 阅读全文
posted @ 2023-09-02 11:56 路闻man 阅读(1875) 评论(0) 推荐(1)
摘要: 正序 list.sort(Comparator.comparing(VO::getSort)); 倒序 list.sort(Comparator.comparing(VO::getSort).reversed()); 阅读全文
posted @ 2021-12-08 13:47 路闻man 阅读(213) 评论(0) 推荐(0)
摘要: //单个对象复制,使用org.springframework.beans.BeanUtils BeanUtils.copyProperties(oldVO, newVO); //list List<NewListVO> newList = JSON.parseArray(JSON.toJSONStr 阅读全文
posted @ 2021-11-22 16:31 路闻man 阅读(146) 评论(0) 推荐(0)
摘要: import org.springframework.data.redis.core.StringRedisTemplate; @Autowired private StringRedisTemplate stringRedisTemplate; public static final String 阅读全文
posted @ 2021-11-03 17:24 路闻man 阅读(178) 评论(0) 推荐(0)
摘要: private static final String PACKAGE_CODE_KEY = "key:no:"; private static final Integer defaultExpireTime = 1; @Override public String generateNo(Strin 阅读全文
posted @ 2021-03-30 16:10 路闻man 阅读(556) 评论(0) 推荐(0)
摘要: 1.Service接口 public interface ExcelExportService { ResponseEntity<byte[]> exportExcel() throws IOException; } 2.Service接口实现类 package com.test.service.t 阅读全文
posted @ 2021-03-05 11:24 路闻man 阅读(433) 评论(0) 推荐(0)
摘要: 1。实现未知宽高元素的水平垂直居中,至少两种方法。 https://www.jianshu.com/p/9206cf198c33 2。vue有哪些生命周期有哪些阶段? 一共8个阶段1、beforeCreate(创建前)2、created(创建后)3、beforeMount(载入前)4、mounted 阅读全文
posted @ 2019-07-02 11:06 路闻man 阅读(792) 评论(0) 推荐(0)
摘要: 代码: 参考: PHP 使用GD库合成带二维码的海报步骤以及源码实现 将图片绘制到画布上:imagecopy() 阅读全文
posted @ 2019-04-18 19:40 路闻man 阅读(1165) 评论(0) 推荐(0)
摘要: function Descartes() { $t = func_get_args(); if (func_num_args() == 1) { return call_user_func_array(__FUNCTION__, $t[0]); } $a = array_shift($t); if (!is_array($a)) { ... 阅读全文
posted @ 2019-03-27 13:15 路闻man 阅读(543) 评论(0) 推荐(0)
摘要: 下载地址:https://github.com/hidu/pproxy 一、下载后解压 二、打开pproxy.exe 三、手机连接wifi,设置wifi,代理改为手动,输入代理主机ip,代理主机端口。 四、在电脑浏览器中输入localhost:8080打开pproxy页面。 在client框中输入手 阅读全文
posted @ 2019-03-26 15:27 路闻man 阅读(838) 评论(0) 推荐(0)
摘要: test.php测试文件 Des.php TripleDES.php 阅读全文
posted @ 2019-03-26 14:47 路闻man 阅读(1026) 评论(0) 推荐(0)
摘要: $dir = dirname(__FILE__); $files = scandir($dir); foreach($files as $name){ if($name == '.' || $name == '..'){ continue; } $title = preg_replace("/Controller.*?php/",'',$name);... 阅读全文
posted @ 2019-03-06 13:19 路闻man 阅读(938) 评论(0) 推荐(0)