自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(58)
  • 资源 (1)
  • 收藏
  • 关注

原创 JSON.stringify(map)返回{}

今天将Map对象转字符串保存到localStorage中实现本地存储的时候,发现调用JSON.stringify(map)返回了{}解决方法:把map转为对象,然后再调用JSON.stringify()方法。

2023-12-06 15:29:01 610

原创 vue axios实现下载文件及responseType:blob注意事项

正常情况下后端返回二进制数据,当后端服务器出错时,往往会以json形式返回错误信息,例如{"code":500,"msg":"未知异常"}。因为设置了blob类型,axios会强制把数据转为blob,导致json格式的响应没办法正常解析,需要使用FileReader对象来处理,FileReader是一种异步读取文件机制。readAsDataURL(file):读取文件内容,结果用data:url的字符串形式表示。readAsBinaryString(file):按字节读取文件内容,结果为文件的二进制串。

2023-08-29 15:51:04 3336

原创 vue前端下载文件

window.location.href =文件请求地址。使用js-file-download插件下载。安装js-file-download。

2023-05-31 16:20:56 287

原创 vue实现打开多个可拖动弹窗

此时已实现弹窗框的可拖动效果,但还未达到我的需求,接下来需要实现打开弹出框可以继续操作页面。弹出框默认是有遮罩层的,需要关闭遮罩层,同时关闭通过点击 modal 关闭 Dialog。实现可拖动这一功能的话网上教程很多,而我需要在此基础上实现点击页面打开多个可拖动弹出框。首先以下执行命令,安装vuedraggable,通过vuedraggable 实现拖动过渡动画比较好。在页面中通过v-dialogDrag命令绑定到组件上,实现拖动效果。注意:css样式一定要写对位置,否则会不生效。加上下边css样式即可。

2023-04-27 16:21:14 2312 3

原创 openEuler忘记密码(超详细)

1.重启虚拟机,在内核选择界面输入英文字母e进入grub2配置页面2.输入字母e后可能会出现下图情况(未出现,直接跳过该步骤),需要用户输入单用户用户名密码,系统默认用户名

2023-03-29 14:59:52 7983

原创 nginx: [emerg] unknown directive “锘? in C:\Users\dell\Desktop\nginx/conf/nginx.conf:3

nginx: [emerg] unknown directive "锘? in C:\Users\dell\Desktop\nginx/conf/nginx.conf:3

2023-03-06 09:11:19 599

原创 如何修改VMware虚拟机的配置文件.vmx

如何修改VMware虚拟机的配置文件.vmx①右击需要要修改.vmx的虚拟机,在弹出的对话框中点击打开虚拟机目录。

2023-02-09 10:29:47 6519

原创 java sleep println方法对线程间变量的可见性的影响

java sleep println方法对线程间变量的可见性的影响

2023-02-07 08:31:50 197

原创 Exception in thread “main“ java.lang.UnsatisfiedLinkError: Unable to load library ‘virt‘

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'virt'

2023-01-05 16:52:01 1939

原创 com.fasterxml.jackson.core.JsonParseException: Unrecognized token ‘Alarm‘: was expecting (JSON Stri

nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Alarm': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')

2022-12-29 12:01:46 14758

原创 vue使用js-file-download插件下载文件乱码

在开发vue项目时遇到使用js-file-download插件下载后端传过来的二进制文件流时报错。

2022-10-24 14:42:18 1361

原创 请求报错:Required String parameter ‘id‘ is not present

请求报错:Required String parameter 'id' is not present

2022-10-21 15:22:08 7842

原创 linux shell脚本实现定时压缩文件夹

linux shell脚本实现定时压缩文件夹

2022-07-19 08:33:16 1667

原创 vue-router传递参数方式详解

在开发项目中遇到需要携带参数跳转页面的需求,来记个笔记方法1.(params传值)以下是主页面跳转方法toEditInfo() { this.$router.push({ path: '/XXX/XXX', params:{ edit:true } });}以下是目标页面方法created(){ this.editStatus = this.$route.query.params;

2022-05-16 21:59:37 567

原创 npm ERR Unsupported URL Type “npm:“: npm:[email protected]

今天在执行vue项目中执行命令npm i 安装依赖时发生报错。。。报错:npm ERR! Unsupported URL Type "npm:": npm:[email protected]原因:npm版本过低需要更新解决:npm install -g npm

2022-04-15 08:51:13 1416

原创 安装MySQL报错:The service already existsThe current server installed

报错:The service already exists!The current server installed: "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld" MySQL解决方法:1.以管理员身份打开命令行2.输入sc query mysql3.输入sc delete mysql如下图:

2022-03-09 13:20:17 4834 1

原创 Syntax Error: TypeError: this.getOptions is not a function

报错:ERROR Failed to compile with 1 error 下午1:45:19error in ./src/assets/styles/element-variables.scssSyntax Error: TypeError: this.getOptions is not a function@ ./src/assets/styles/element-variabl...

2022-02-23 13:52:40 1902

原创 Syntax Error: Error: Node Sass does not yet support your current environment:

报错:ERROR Failed to compile with 1 error 上午11:47:18error in ./src/assets/styles/fat.scssSyntax Error: Error: Node Sass does not yet support your current environment: Windows 64-bit withFor more informa...

2022-02-23 13:20:20 8312

原创 java可以开启线程吗?

答案:不可以;原因:java运行在虚拟机上,无法直接操作硬件,在start方法中调用了本地方法start0,通过C++操作底层源码:public synchronized void start() { /** * This method is not invoked for the main method thread or "system" * group threads created/set up by the VM. Any new fun.

2022-02-15 10:55:50 347

原创 Cannot get a text value from a numeric cell

通过poi来读取excel文件过程中,通过cell.getStringCellValue()方法尝试从一个数字类型的Cell读取出一个字符串时报错。报错:Exception in thread "main" java.lang.IllegalStateException: Cannot get a text value from a numeric cell at org.apache.poi.xssf.usermodel.XSSFCell.typeMismatch(XSS...

2021-12-31 15:03:05 962

原创 The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals

报错:Exception in thread "main" org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals with OLE2 Office Documents. You need to call a different part of PO

2021-12-31 14:29:14 2854

原创 git操作命令

命令名称 作用 git config --global user.name 用户名 设置用户签名 git config --global user.email 邮箱 设置用户签名 git init 初始化本地库 git status 查看本地库状态 git add 文件名 添加到暂存区 git commit -m "日志信息" 文件名 提交到本地库 git reflog 查看版本信息 git reset --h...

2021-12-30 16:59:47 104

原创 DiskGenius 百度云下载链接

链接: https://pan.baidu.com/s/1mT1yyEqOOec0xYe5CZkGOQ 提取码: w5ye

2021-12-29 09:29:46 20154 11

原创 ideaIU-2019.3.3 百度云下载链接

链接:https://pan.baidu.com/s/1awxRcZvJpGHp8YWdc52Rnw提取码:uc4w

2021-12-29 09:26:22 8514

原创 java中字符串分割String.split()用法

问题:今天在使用String.split(".")分割字符串时发现得到的字符数组为空解决方法:"."和"|"都需要转义,也就是在前边加上"\\"正确写法:// 使用"."作为分隔:String.split("\\.");// 使用"|"作为分隔:String.split("\\|");...

2021-12-09 09:23:52 331 2

原创 代替ImageIO读取图片的解决方案

报错:ImageIO分析:ImageIO在读取图片时存在问题解决方案:commons-imaging

2021-11-05 14:38:13 1372 1

原创 There was an unexpected error (type=Not Found, status=404)

报错:There was an unexpected error (type=Not Found, status=404)问题:springboot项目启动,访问接口报错,可能时类没有被扫描到解决方法:在application类中添加包扫描,代码如下:@ComponentScan("com.example.*")...

2021-10-18 11:24:07 580

转载 mongodb 命令行基本命令使用大全

(先声明下,下面的命令,我没有都测试过,这是我转载的,以备后用,所以喷子且留情,不然小心我三十米的大刀!!!想想我都怕!!!)成功启动MongoDB后,再打开一个命令行窗口输入mongo,就可以进行数据库的一些操作。输入help可以看到基本操作命令:show dbs:显示数据库列表show collections:显示当前数据库中的集合(类似关系数据库中的表)show users:显示用户use <db name>:切换当前数据库,这和MS-SQL里面的意思一样db.hel...

2021-10-15 16:12:43 1926

原创 Repository is not clean. Please commit or stash any changes before updating.

在执行ng update @angular/core @angular/cli命令时报错:Repository is not clean. Please commit or stash any changes before updating.解决方法:执行命令:ng update --all --force --allow-dirty

2021-10-14 13:30:43 2814

原创 stack Error: Could not find any Visual Studio installation to use

在安装ng-zorro时报错:报错:npm ERR! code 1npm ERR! path C:\Users\xx\Desktop\angular\wyy\node_modules\fibersnpm ERR! command failednpm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuildnpm ERR! gyp info it worked if it ends with oknpm ERR!

2021-09-30 16:03:52 7898

原创 electron-vue报错:(index):1 Uncaught ReferenceError: require is not defined at (index):1

报错:(index):1 Uncaught ReferenceError: require is not defined at (index):1(index):1 Uncaught ReferenceError: process is not defined at (index):1renderer.js:1 Uncaught ReferenceError: module is not defined at renderer.js:1解决方法:在窗口的web...

2021-09-08 09:26:59 1680

原创 electron报错:Error: Electron failed to install correctly, please delete node_modules/electron and try

在win10上在搭建electron-vue项目时,使用npm install命令报错报错:Error: Electron failed to install correctly, please delete node_modules/electron and try installing again解决方法:命令行进入项目中node_modules/electron目录,运行node install.js命令即可...

2021-09-07 16:32:39 767

原创 electron报错:Uncaught TypeError: Cannot read property ‘BrowserWindow‘ of undefined

electron版本14+使用remote模块时出现问题,代码如下:const BrowserWindow = require('electron').remote.BrowserWindow;报错:Uncaught TypeError: Cannot read property 'BrowserWindow' of undefined解决方法:新版的 electron 由于安全原因默认关闭了 remote模块,需要在主窗体中开启remote,也就是在webPreferen

2021-09-03 08:10:38 4520 2

原创 设置运行.bat文件后不关闭命令行窗口

解决方法:在bat文件最后一行加上pause或者cmd命令即可效果图:

2021-08-25 16:00:58 7166

原创 xxxx.jar中没有主清单属性

报错:C:\Users\xxx\Desktop\java\upload\upload_jar>java -jar upload-1.0-SNAPSHOT.jarxxxx.jar中没有主清单属性过程:在将java maven项目打成jar包并通过java -jar xxx.jar命令运行时报错解决办法:首先通过压缩软件编辑jar包中的MANIFEST.MF文件,添加Main-Class配置项目(见图1),根据自己的工程结构来写(见图2)图1:图2:.

2021-08-25 15:12:53 322

原创 Exception in thread “main“ java.lang.NoClassDefFoundError: com/alibaba/fastjson/JSONObject

Exception in thread "main" java.lang.NoClassDefFoundError: com/alibaba/fastjson/JSONObject报错:C:\Users\li\Desktop\java\upload\upload_jar>java -jar upload-1.0-SNAPSHOT.jar......Exception in thread "main" java.lang.NoClassDefFoundError: com/alibab

2021-08-25 15:00:59 3230

原创 seaweedFS基本使用

启动master:(-mdir路径自定义,-ip自定义)```java./weed master -mdir="./data/master"或者./weed master -mdir="./data/master" -ip=“127.0.0.1”```#通常设置IP,而不是默认的localhost启动volume:```java./weed volume -mserver="127.0.0.1:9333" -dir="./data/volb"```

2021-08-12 14:26:50 1863

原创 wait()和sleep()的区别

两者都是线程暂停执行的方法。1.他们来自不同的类,分别是Thread和Object,sleep方法属于Thread类中的静态方法,wait属于Object的成员方法。2.sleep()是线程类(Thread)的方法,不涉及线程通信,调用时会暂停此线程指定的时间,但监控依然保持,不会释放对象锁,到时间自动恢复;wait()是Object的方法,用于线程的通信,调用时会放弃对象锁,进入等待队列,待调用notify()/notifyAll()唤醒指定的线程或者所有线程,才进入对象锁定池准备获得对象锁进入运行状

2021-08-11 09:47:14 182

原创 Java取余与求模

区别:对于整型数x,y来说,取模运算或者求余运算的方法都是:1.求整数商:int r = x / y;2.计算模或者余数:int result = x - y * r;求模运算和求余运算在第一步不同:如果r的值时负数且不为整数时,取余运算在取r的值时,向0放行舍入(fix()函数);而取模运算在计算r的值时,向负无穷方向舍入(floor()函数);如果r为整数则没有区别。例如:x = -5 , y = 3 , r = -5 / 3 = -1.66取余时,r = -1 ..

2021-06-10 11:40:31 852

原创 稀疏数组的应用

稀疏数组的处理方法是:1)记录数组一共有几行几列,有多少个不同的值。2)把具有不同值的元素和行列及值记录在一个小规模的数组中,从而缩小程序的规模。二维数组转稀疏数组:1.遍历原始的二维数组,得到有效数组的个数sum2.根据sum就可以创建稀疏数组sparseArr int[sum +1][3]3.将二维数组的优先数据存入稀疏数组稀疏数组转二维数组:1.先读取稀疏数组第一行数据,根据第一行数据创建原始的二维数组,比如上面的chessArr2 = int[1...

2021-06-09 17:14:49 80

mysql-installer-community-5.7.36.0.msi

MySql-5.7.36-win版安装包

2021-10-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除