摘要: synchronized是什么 java内置锁,可以保证方法或者代码块在运行时候,同一时刻只有一个线程进入临界区,同时它还保证了共享变量的可见性(限定同一个临界区,等同于volatile) synchronized几种用法 修饰普通方法,锁的是当前实例 修饰代码块,锁的括号里面的对象 修改静态方法, 阅读全文
posted @ 2022-01-18 23:38 tycell 阅读(135) 评论(0) 推荐(0) 编辑
摘要: //下载之前请先确保自己本地的php版本,因为不同的laravel对php有要求,接下来简单记录自己的安装步骤 1、下载composer : " https://getcomposer.org/Composer-Setup.exe"2、改成国内镜像配置: composer config -g rep 阅读全文
posted @ 2018-04-15 13:51 tycell 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 file_name=$file_name; 14 $this->file_path=$file_path; 15 $this->pwidth=$width; 16 $this->pheight=$height; 17 } 18 public function index(){ 19 $name=$... 阅读全文
posted @ 2017-05-27 14:40 tycell 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1 file_path=$path; //要打包的根目录 16 } 17 /** 18 * 入口调用函数 19 * @return [type] [以二进制流的形式返回给浏览器下载到本地] 20 */ 21 public function index(){ 22 $zip=new ZipArchive(); 23 ... 阅读全文
posted @ 2017-04-25 21:15 tycell 阅读(7631) 评论(0) 推荐(1) 编辑