<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[DavidZhao的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/zrexam</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; zrexam]]></copyright><item><title><![CDATA[springboot项目启动报：module java.base does not “opens java.lang“ to unnamed module 解决方法]]></title><link>https://blog.csdn.net/zrexam/article/details/148113566</link><guid>https://blog.csdn.net/zrexam/article/details/148113566</guid><author>zrexam</author><pubDate>Wed, 21 May 2025 14:05:01 +0800</pubDate><description><![CDATA[在将老项目从JDK 1.8升级到JDK 17后，运行时报错java.lang.reflect.InaccessibleObjectException，原因是JDK 9及以上版本引入了模块系统，导致旧代码和库不兼容。由于项目已上线，无法整体修改依赖，可以通过修改VM options参数解决。具体方法是在运行/调试配置中添加以下参数：--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UN]]></description><category></category></item><item><title><![CDATA[vue-cli3+vue2+elementUI+avue升级到vite+vue3+elementPlus+avue总结]]></title><link>https://blog.csdn.net/zrexam/article/details/146094991</link><guid>https://blog.csdn.net/zrexam/article/details/146094991</guid><author>zrexam</author><pubDate>Fri, 07 Mar 2025 15:20:45 +0800</pubDate><description><![CDATA[上一个新公司接手了一个vue-cli3+vue2+vue-router3.0+elementUI2.15+avue2.6的后台管理项目，因为vue2在2023年底已经不更新维护了，elementUI也只支持到vue2，然后总结了一下vue3的优势，最后批准升级成为了vite+vue3+vue-router4.5+elementPlus2.9+avue3.6，并向下兼容vu2。]]></description><category></category></item><item><title><![CDATA[vue项目纯前端把PDF转成图片并下载]]></title><link>https://blog.csdn.net/zrexam/article/details/146094364</link><guid>https://blog.csdn.net/zrexam/article/details/146094364</guid><author>zrexam</author><pubDate>Fri, 07 Mar 2025 14:12:34 +0800</pubDate><description><![CDATA[项目需求是把一个pdf转成图片，并在最后添加上公司二维码，下载下来。经过研究以后，作此记录供大家参考学习。主要用到了pdfjs-dist这个包，我用的是2.16.105版本。先下载node_modules包。废话不多说，直接上代码。]]></description><category></category></item><item><title><![CDATA[antd3.X圣诞节彩蛋样式不升级版本的去除方法]]></title><link>https://blog.csdn.net/zrexam/article/details/144717377</link><guid>https://blog.csdn.net/zrexam/article/details/144717377</guid><author>zrexam</author><pubDate>Wed, 25 Dec 2024 13:25:44 +0800</pubDate><description><![CDATA[antd3.X版本在圣诞节当天会加上积雪样式和title会添加Ho!虽然升级到antd4.X以上版本就没有这个问题了，而因为项目版本太老旧，直接升级有风险，现交给大家三种去除的方法，供参考！找打node_modules\antd\lib\button下面的button.js，在大约220行上。此方法也是给页面加上了方法二的样式，然后鼠标经过button时把title给清空了。如果可以重新打包，那就一劳永逸、简单粗暴的直接修改antd的源码文件。此方法可以不用打包，不过去除不掉title中的Ho!]]></description><category></category></item><item><title><![CDATA[js实现监听ctrl+v粘贴事件获取复制的内容，并把截取的图片转base64]]></title><link>https://blog.csdn.net/zrexam/article/details/138562228</link><guid>https://blog.csdn.net/zrexam/article/details/138562228</guid><author>zrexam</author><pubDate>Wed, 08 May 2024 10:49:00 +0800</pubDate><description><![CDATA[在 JavaScript 中，可以通过添加 'paste' 事件监听器来监听粘贴事件。]]></description><category></category></item><item><title><![CDATA[Linux下tomcat启动时提示无法分配内存异常]]></title><link>https://blog.csdn.net/zrexam/article/details/113930355</link><guid>https://blog.csdn.net/zrexam/article/details/113930355</guid><author>zrexam</author><pubDate>Mon, 22 Feb 2021 10:22:01 +0800</pubDate><description><![CDATA[今天替换了一下后台的包，启动tomca后报错：

INFO: os::commit_memory(0x0000000794500000, 576716800, 0) failed; error=‘无法分配内存’ (errno=12)

之前还好好的，怎么突然就不行了，查看了一下，引起以上异常的主要原因是：

服务器上物理内存不够，服务器应用程序太多，内存不足，而给jvm分配的内存太大造成。

解决方法：

1.进入部署程序的tomca中，cd 到tomcat的/bin目录下，找到catalina.sh文件
]]></description><category></category></item><item><title><![CDATA[eclipse中用tomcat运行项目后，运行接口一直报404]]></title><link>https://blog.csdn.net/zrexam/article/details/113307757</link><guid>https://blog.csdn.net/zrexam/article/details/113307757</guid><author>zrexam</author><pubDate>Thu, 28 Jan 2021 09:40:53 +0800</pubDate><description><![CDATA[今天犯了一个低级错误，记录一下。

今天在新电脑上运行之前的项目，在eclipse中用tomcat运行项目后，在浏览器运行接口一直报404，报404很明显是路径不对，可是之前明明没有问题的啊（因为项目要用websocket只能用tomcat启动），换个电脑重新搭了项目怎么就不行了呢？

排查了一会发现原来是tomcat的path路径忘记修改了，真是太大意了。

修改方法：

1、双击Servcers中的tomcat服务

2、点击下面的Modules，切换到web Modules中

3、点击Edit修改，]]></description><category></category></item><item><title><![CDATA[Oracle SQL查询速度优化leading和use_nl]]></title><link>https://blog.csdn.net/zrexam/article/details/113307376</link><guid>https://blog.csdn.net/zrexam/article/details/113307376</guid><author>zrexam</author><pubDate>Thu, 28 Jan 2021 09:23:32 +0800</pubDate><description><![CDATA[今天写了一个SQL，表数据太大，表索引也加了，可和另一张表关联一起查一个月的数据总是很慢，大约要60多秒。优化后只用了0.07秒，记录一下防止以后忘记了。

select /*+leading(t) use_nl(t, d)*/t.a,t.b,t.c, d.a,d.b,d.c

 from tablea t, tableb d

 where t.id = d.id
      and t.a is not null
      and t.b is not n...]]></description><category></category></item><item><title><![CDATA[antd4-codemod把antd3.X升级到antd4.9最新版本]]></title><link>https://blog.csdn.net/zrexam/article/details/111289371</link><guid>https://blog.csdn.net/zrexam/article/details/111289371</guid><author>zrexam</author><pubDate>Wed, 16 Dec 2020 16:57:49 +0800</pubDate><description><![CDATA[项目做了好多年，框架一直用的antd3.X的，一直在3的版本上升级，React也一直用的16.6的版本，所以也不支持react Hook。

最近领导让把所有项目的antd升级都到4.X的版本，方便以后迭代，所以升级研究了一下，有antd4-codemod工具还是很简单的，一个小时搞定。

第一步：

通过 npx 直接运行 npx -p @ant-design/codemod-v4 antd4-codemod src

或者 全局安装 # 使用 npm npm i -g @ant-design/code.]]></description><category></category></item><item><title><![CDATA[npm start运行报错，failed to compile with 2 errors]]></title><link>https://blog.csdn.net/zrexam/article/details/107664908</link><guid>https://blog.csdn.net/zrexam/article/details/107664908</guid><author>zrexam</author><pubDate>Wed, 29 Jul 2020 15:13:34 +0800</pubDate><description><![CDATA[今天把项目代码拉下来后，用npm start运行项目报错，

报Error: failed to compile with 2 errors，也没有具体的报错信息和位置，（我们用的是react的框架，vue不知是否一样）

排查了好久，把最新svn拉下来的页面逐一排查了一遍终于发现问题所在。



解决方法：

出现这种情况大多数是require引入图片路径不对导致的，

报错的2 errrors 说明是有两处，数字是几说明几处，

可以全局搜索一下引入图片的文件夹，看看那个路径不对改一下即可
...]]></description><category></category></item><item><title><![CDATA[umi项目前端运行或打包提示内存溢出Javascript heap out of memory]]></title><link>https://blog.csdn.net/zrexam/article/details/107332680</link><guid>https://blog.csdn.net/zrexam/article/details/107332680</guid><author>zrexam</author><pubDate>Tue, 14 Jul 2020 10:32:15 +0800</pubDate><description><![CDATA[我们使用的umi+dva+antd搭建的项目，因为项目越做越大遇到了此情况。

  有时npm start运行不起来报错Javascript heap out of memory

  有时运行的时间长了自动就会断开，提示Javascript heap out of memory

  有时打包的时候也会提示内存溢出Javascript heap out of memory。

  在网上找了好多方法试过都不行。最后找到一篇文章的回复的方法解决了此问题，在此记录下来希望对大家有帮...]]></description><category></category></item><item><title><![CDATA[封装react-redux中的connect]]></title><link>https://blog.csdn.net/zrexam/article/details/88539764</link><guid>https://blog.csdn.net/zrexam/article/details/88539764</guid><author>zrexam</author><pubDate>Wed, 13 Mar 2019 20:02:07 +0800</pubDate><description><![CDATA[每个组件引入connect后，发现会把当前store中的state都读取监听到，而且每次只要有一个state修改就会运行render的重新渲染，这样大大的降低了页面的效率，所以考虑了一下，可不可以把connect重新封装一下，让每个页面只读取自己需要的state状态！



先在group文件夹中新建一个文件叫GroupState.js

我们要把要用到的connect、bindActionCr...]]></description><category></category></item><item><title><![CDATA[vue 生命周期详解]]></title><link>https://blog.csdn.net/zrexam/article/details/88406607</link><guid>https://blog.csdn.net/zrexam/article/details/88406607</guid><author>zrexam</author><pubDate>Mon, 11 Mar 2019 20:03:40 +0800</pubDate><description><![CDATA[组件从创建到销毁的一系列过程就叫做组件的生命周期
vue在整个生命周期中为我们提供了一些钩子函数
钩子函数的特点就是会在生命周期的某一时刻去进行触发

组件的生命周期可以分为三个过程： 初始化、运行中、销毁
初始化阶段钩子函数：beforeCreate created beforeMounte mounted
运行中阶段钩子函数：beforeUpdate updated
销毁中阶段钩子函数：be...]]></description><category></category></item><item><title><![CDATA[Vue指令总结]]></title><link>https://blog.csdn.net/zrexam/article/details/88320079</link><guid>https://blog.csdn.net/zrexam/article/details/88320079</guid><author>zrexam</author><pubDate>Thu, 07 Mar 2019 20:48:09 +0800</pubDate><description><![CDATA[v-for：

在vue中可以通过v-for来循环数据的通知循环dom，语法是item in/of items，接收第二个参数是索引 (item,index) of items,还可以循环键值对，第一个参数是value，第二个是key，第三个依然是索引



v-on：

在vue中还有v-on来为dom绑定事件，在v-on：后面加上要绑定的事件类型，值里可以执行一些简单javascript表达...]]></description><category></category></item><item><title><![CDATA[手写webpack配置React环境]]></title><link>https://blog.csdn.net/zrexam/article/details/88319674</link><guid>https://blog.csdn.net/zrexam/article/details/88319674</guid><author>zrexam</author><pubDate>Thu, 07 Mar 2019 20:35:06 +0800</pubDate><description><![CDATA[一直用React脚手架做项目，今天突发奇想，想自己用webpack搭建了一下react的环境，结果真是历经千辛万苦，各种少模块，各种不兼容，最后终于成功了。保存下来以后好直接拿来用！

webpack.config.js


const baseConfig = require(&quot;./config/base&quot;)
const devConfig = require(&quot;./config/dev&quot;)
c...]]></description><category></category></item><item><title><![CDATA[VUE设计模式之MVVM和MVC的区别]]></title><link>https://blog.csdn.net/zrexam/article/details/88048962</link><guid>https://blog.csdn.net/zrexam/article/details/88048962</guid><author>zrexam</author><pubDate>Fri, 01 Mar 2019 09:44:02 +0800</pubDate><description><![CDATA[VUE是基于MVVM的设计模式开发的，今天说一下MVC和MVVM的区别。

MVC：

m:model数据模型层  v:view视图层 c:controller控制器 

原理：c层需要控制model层的数据在view层进行显示



MVC两种方式，图片说明：







代码实例：

我们做一个很简单的DIV显示隐藏的效果，点击toggle可以切换下面div显示隐藏



ht...]]></description><category></category></item><item><title><![CDATA[MongoDB数据库的安装及用法]]></title><link>https://blog.csdn.net/zrexam/article/details/87269163</link><guid>https://blog.csdn.net/zrexam/article/details/87269163</guid><author>zrexam</author><pubDate>Thu, 14 Feb 2019 14:04:03 +0800</pubDate><description><![CDATA[MongoDB

windows下 下载MongoDB

www.mongodb.org/downloads

https://mongoose.kkfor.com/ 中文文档





 

 



shell（计算机壳层）

在计算机科学中，Shell俗称壳（用来区别于核），是指“提供使用者使用界面”的软件（命令解析器）。它类似于DOS下的command.com和后来的cmd.exe。它接收...]]></description><category></category></item><item><title><![CDATA[promise的基本用法案例]]></title><link>https://blog.csdn.net/zrexam/article/details/87268934</link><guid>https://blog.csdn.net/zrexam/article/details/87268934</guid><author>zrexam</author><pubDate>Thu, 14 Feb 2019 13:46:50 +0800</pubDate><description><![CDATA[promise的基本用法

promise执行多步操作非常好用，那我们就来模仿一个多步操作的过程，那就以吃饭为例吧。要想在家吃顿饭，是要经过三个步骤的。

1、洗菜做饭。

2、坐下来吃饭。

3、收拾桌子洗碗。

这个过程是有一定的顺序的，你必须保证上一步完成，才能顺利进行下一步。我们可以在脑海里先想想这样一个简单的过程在ES5写起来就要有多层的嵌套。那我们现在用promise来实现。




...]]></description><category></category></item><item><title><![CDATA[ES7中的异步async和异步等待await]]></title><link>https://blog.csdn.net/zrexam/article/details/87261808</link><guid>https://blog.csdn.net/zrexam/article/details/87261808</guid><author>zrexam</author><pubDate>Thu, 14 Feb 2019 13:40:20 +0800</pubDate><description><![CDATA[异步async和异步等待await是什么？

异步async做为一个程序猿大家一般都接触过，知道是什么意思。而在这里async主要是用于申请一个function函数是异步的！

异步等待await是 async wait 的简写，await 只能出现在 async 函数中，一定要注意不能直接调用。因为await会造成程序阻塞，浪费资源！

下面举例给大家说明一下：

比方说我们要吃外卖，而外卖在楼...]]></description><category></category></item><item><title><![CDATA[移动端切图]]></title><link>https://blog.csdn.net/zrexam/article/details/86974997</link><guid>https://blog.csdn.net/zrexam/article/details/86974997</guid><author>zrexam</author><pubDate>Mon, 11 Feb 2019 09:10:04 +0800</pubDate><description><![CDATA[作为一名刚接触移动端页面的前端人员，总会遇到很多问题，如为什么 head 那里要加 viewport meta，为什么背景图片要用 二倍图 等等。我相信也有很多人跟你说，加 viewport 是为了让页面不缩放，让页面在手机上能1：1显示
；用 二倍图 是因为 retina 屏1个像素被分为4个像素，所以模糊了，需要用大一倍的图片，让其显示正常。

或许你哦了一声后也一直这么做，但是你事实上并不明...]]></description><category></category></item></channel></rss>