摘要: aaPanel面板和宝塔面板都是同一家公司在运营,只是aaPanel面板主要服务于海外客户,宝塔面板服务于本地客户。通常如果使用的是海外的服务器部署web环境,建议使用aaPanel面板。宝塔面板是一款基于 Web 的管理服务器的面板软件,它可以帮助用户方便地管理服务器的各种功能。面板支持Linux 阅读全文
posted @ 2024-04-19 19:07 路闻man 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 最近测试发现网站的数据不正常,经过排查,是脚本没正常运行。查看错误日志,发现报SQLSTATE[HY000]: General error: 2006 MySQL server has gone away错误。 第一时间怀疑是服务器连接数太多,但是使用SHOW FULL PROCESSLIST查询, 阅读全文
posted @ 2023-10-30 11:29 路闻man 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 一、安装xdebug 下载Xdebug,要下载与PHP对应版本的Xdebug xdebug官网下载地址:Xdebug: Downloads 这里下载的如果没有跟你的php对应,那么等待你的就是一堆报错 网站提供了一个自动分析系统对应的xdebug版本 ,网址是: Xdebug: Support — 阅读全文
posted @ 2023-09-02 11:56 路闻man 阅读(1065) 评论(0) 推荐(1) 编辑
摘要: 正序 list.sort(Comparator.comparing(VO::getSort)); 倒序 list.sort(Comparator.comparing(VO::getSort).reversed()); 阅读全文
posted @ 2021-12-08 13:47 路闻man 阅读(191) 评论(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 阅读(122) 评论(0) 推荐(0) 编辑
摘要: import org.springframework.data.redis.core.StringRedisTemplate; @Autowired private StringRedisTemplate stringRedisTemplate; public static final String 阅读全文
posted @ 2021-11-03 17:24 路闻man 阅读(136) 评论(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 阅读(516) 评论(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 阅读(340) 评论(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 阅读(731) 评论(0) 推荐(0) 编辑
摘要: 代码: 参考: PHP 使用GD库合成带二维码的海报步骤以及源码实现 将图片绘制到画布上:imagecopy() 阅读全文
posted @ 2019-04-18 19:40 路闻man 阅读(1008) 评论(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 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 下载地址:https://github.com/hidu/pproxy 一、下载后解压 二、打开pproxy.exe 三、手机连接wifi,设置wifi,代理改为手动,输入代理主机ip,代理主机端口。 四、在电脑浏览器中输入localhost:8080打开pproxy页面。 在client框中输入手 阅读全文
posted @ 2019-03-26 15:27 路闻man 阅读(651) 评论(0) 推荐(0) 编辑
摘要: test.php测试文件 Des.php TripleDES.php 阅读全文
posted @ 2019-03-26 14:47 路闻man 阅读(1004) 评论(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 阅读(923) 评论(0) 推荐(0) 编辑
摘要: JQuery: HTML5 required属性: 阅读全文
posted @ 2018-12-13 14:45 路闻man 阅读(1720) 评论(0) 推荐(0) 编辑
摘要: HTML: CSS: JS: PHP: 阅读全文
posted @ 2018-12-10 17:32 路闻man 阅读(342) 评论(2) 推荐(0) 编辑
摘要: 导入按钮 模态框 弹出模态框,选择文件,点击确定 PHP控制器 阅读全文
posted @ 2018-12-04 14:42 路闻man 阅读(543) 评论(0) 推荐(0) 编辑
摘要: //导入 public function excelImport(){ $mimes = array( 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ); ... 阅读全文
posted @ 2018-06-29 18:45 路闻man 阅读(410) 评论(0) 推荐(0) 编辑
摘要: //[['u'=>'site.index','d'=>['a'=>2],'k'=>'test']]; public function apiBatch($arr,$timeout=15000) { ini_set("yar.timeout",$timeout); $url = C('RPCURL'); foreach ($arr a... 阅读全文
posted @ 2018-06-27 17:25 路闻man 阅读(257) 评论(0) 推荐(0) 编辑
摘要: substr() 函数返回字符串的一部分。 注释:如果 start 参数是负数且 length 小于或等于 start,则 length 为 0。 defined() 函数检查某常量是否存在。 若常量存在,则返回 true,否则返回 false。 define() 函数定义一个常量。 常量类似变量, 阅读全文
posted @ 2018-06-27 11:56 路闻man 阅读(263) 评论(0) 推荐(1) 编辑